- Home /
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 https://github.com/jouz/socket.io-unity-client/blob/master/ExampleSocketIO.cs
he tells me how to do it with source but it doesn't work
help me! plz
Answer by SudhirGametion · Sep 11, 2017 at 07:06 AM
Hello @kjkpoi, Please follow this Article for connecting node.js + Unity.
http://www.yudiz.com/developers-guide-to-unity3d-mmo-with-node-js-using-socket-io/
Answer by Valentinon13 · Oct 27, 2016 at 06:48 PM
I build a own server and its working you need to dowload SOCKETIO from the app store !
Answer by all87 · Oct 02, 2012 at 11:21 AM
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: https://github.com/CreativeTechnology/socket.io-unity-client/issues/3
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 :) now look at https://github.com/Worlize/WebSocket-Node)
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
Your answer
Follow this Question
Related Questions
What is unity WebGL export's correlation to Node.js? 1 Answer
How to stream audio from unity app to the web browser? 0 Answers
How do I connect to a server in LAN from a different computer? I'm using socket.io and nodejs 1 Answer
Node.js Problem 1 Answer
How to set namespace in packet of socketIO using unity3d 1 Answer