SocketIO 2.0

Have anyone had any success integrating a NodeJS/SocketIO implementation with TouchDesigner ?

I really want to use SocketIO 2.0 to send data to TD somehow. Is the new 099 update supporting this ?

Sadly socket io 2.0 isn’t supported by touchdesigner yet.

There are a couple of ways you can approach sockets and touchdesigner though.

One method I use a lot is to run a node server and use node-osc to convert all socket event data to an osc packet with the json object passed as a string value.
[url]https://github.com/MylesBorins/node-osc[/url]

Another much more complex method is to write your own CHOP that brings in socket events. Obviously this will only work for sliders and triggers really as you cant make your own C++ DAT (yet)

If you were looking to keep everything within touch using that method then you’d want to look here:
[url]https://github.com/socketio/socket.io-client-cpp[/url]

The above seems to work with socket io 2.0 easily enough although if you’re gonna compile from source you’d want to change the included websocketpp to the latest version first.

I also always use a node-osc middleapp for this sort of thing.
sometimes will just have touchdesigner launch it as a sub-process.
SEE Ragans stuff:
[url]https://matthewragan.com/2018/03/29/touchdesigner-process-management/[/url]

the web standards supported in Node will always be more robust/updated vs Touchdesigner