WebSocket from MAX

allen's icon

I've been trying to build, what I thought was, a simple patch but I'm having trouble getting the data to go through Websocket using UDP.

Here's a super simplified version of the patch.

Bang > Message: "set /device/0/level/value -55" > udpsend localhost 4710

From what I've read, UDP should be able to send the message to the listening port thereby performing the action from the message. Is this not the case?

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Not sure what you want do do exactly? Isn't web socket a TCP thing rather than UDP? Your message looks more like an OSC address which is what UDPsend/receive objects are for, anyway the approach you've outlined above works between UDP connections as I would expect, check the patch. I know Adam Siska did some TCP externals and Oli Larkin did something to do with web sockets and I seem to remember some other things popping up, check the forum.