How to connect Node.js + Unity?

is’it possible to connect between unity and node.js?

someone tells it’s possible using socket.io but i don’t know how to know

is anybody tried it?

i found a link socket.io-unity-client/ExampleSocketIO.cs at master · jankolkmeier/socket.io-unity-client · GitHub

he tells me how to do it with source but it doesn’t work

help me! plz

I build a own server and its working you need to dowload SOCKETIO from the app store !

SuperWebSocket

i was try up all this

1 i meet prob with crossdomain.xml, line on server.js:
io.set(‘transports’, [‘websocket’, ‘flashsocket’]);
fix this prob

2 but after meet prob (unknown transport, in unity - SocketIoClientConnection.cs:66) same as here:

i think, for support last v., can add in unity js file - sever:port/socket.io/socket.io.js then it will standart usable functions, but it not usable as it, need many fix, hard work…

i wasnt try install old version socket.io, better will try create myself simple solution (last only found simple socket module for nodejs :slight_smile: now look at GitHub - theturtle32/WebSocket-Node: A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455))

PS: sorry for my Eng:) i noob at socket things, but in internet not many info about unity+nodejs, maby this will help some one

http://forum.unity3d.com/threads/released-scripting-with-actual-javascript.289747/

Hello @kjkpoi, Please follow this Article for connecting node.js + Unity.

You can use socket.io on node.js. Connect with this plugin Socket.IO for Unity | Network | Unity Asset Store

And here is the tutorial

I get it, this is old, but new products are available! Get Node-Red. Built in UDP input and output! Then all you do is attach a UDP sender or reciever to an object in a scene, and VIOLA!

Use REST APIs or web sockets to connect Node.js with Unity. need coding expertise and networking understanding. Tools from a third party can make the procedure easier.