websocket client

Marco's icon

Hi all,

I like to control a Websocket server from Max.
Does anyone know a way (external, javascript) to do it directly from Max, without an external server?

Cheers,
Marco

Marco's icon

I solved the issue, it works great with the jweb Object.
Load a html file which implements a websocket similar like this - http://www.tutorialspoint.com/html5/html5_websocket.htm and it works like a charm.

Great work Cycling!
Thx,
MArco

Graham Wakefield's icon

https://github.com/worldmaking/Max_Worldmaking_Package/tree/devel?files=1

There is a ws.client external in the package in the link above. You need to get the devel branch, not master. The devel branch has a bunch of externals that are not fully tested/documented/stable etc., but the ws.client has been working well for me so far.