Cool project!
I think the problem here is that the server can send messages only using SendTrig or SendReply. Writing sendMsg inside a synth function will not work.
A few weeks ago, there was a question about sending OSC from the server to a non-SC client, and I posted an example. Maybe it will help. Sending OSC to other applications from Server - #2 by jamshark70
Or, send the data from the server to sclang, and then you can use sendMsg.
hjh