Websocket Plugin for MAX

Jan 16, 2013 at 9:21pm

Websocket Plugin for MAX

Is there currently a websocket plugin that can work with MAX or is there anyone interested in writing one?

Jan 17, 2013 at 3:32am


I have an object called [sadam.tcpClient] in my library that creates duplex TCP connections. However, the problem is that it works in pure binary format (by that I mean that it can only send and receive integers in the range [0;255] on the data inlet and outlet, representing the information byte-by-byte). There are a couple of threads in this forum ( http://cycling74.com/forums/topic.php?id=43910 or http://cycling74.com/forums/topic.php?id=43677 or http://cycling74.com/forums/topic.php?id=43181 ) where I described how one could use my object to make simple HTTP queries like GET or HEAD, and in one of the threads I also posted a simple example that connects to an SMTP server and sends an e-mail. However, since in all cases you have to build the whole communication yourself, it might be much trickier to make it work with WebSocket (although, in theory, it would certainly be possible).

Another problem might be (depending on what your goal is), that my object is a TCP client. This means that it can open connections to servers, but can’t act as a server itself. In other words, it can’t accept incoming connection requests. I’ve been developing a TCP server for Max for a while, but I never actually got enough free time to finish it… :-(

Hope this helps,


You must be logged in to reply to this topic.