web server to max msp

berko's icon

how would i send messages from my web server on mac os x to max? any thoughts?

williamjturkel's icon

Could you use jit.uldl for what you want to do?

velotron's icon

I have been using socket.io, node.js, and osc4node from https://github.com/hideyukisaito/osc4node to send data from controls in a web interface to max. A node.js server serves pages to the web browser client, and handles communication from the browser to osc4node, which sends the messages to a port opened in max with udpreceive. It works great.

berko's icon

thanks. i got it working using this: http://www.loadbang.net/space/Software/net.loadbang.web. it was really easy once i figured out where everything goes and then i can just create a webpage, and use javascript to communicate with iphone(s) to max. I am eventually going to get into node.js, i hear it is great.

i also saw this: http://www.youtube.com/watch?v=ZntmJhaU1Eo, which is interesting.

if anyone has any thoughts whether UDP will have any real performance benefits over TCP i am debating pros and cons of both.