Websocket Plugin for MAX

    Jan 16 2013 | 9:21 pm
    Is there currently a websocket plugin that can work with MAX or is there anyone interested in writing one?

    • Jan 17 2013 | 3:32 am
      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 ( https://cycling74.com/forums/send-emailrecent-info or https://cycling74.com/forums/max-http-methods or https://cycling74.com/forums/download-text-from-wikipedia ) 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, Ádám