PhasedEvolution Posted October 1, 2016 Share Posted October 1, 2016 Hello. I want to implement multiplayer on a test game I created. I am thinking of using this : https://github.com/websockets/ws Do you agree with it? If so, do you know of any good tutorials to make me understand how to implement it? If possible not outdated... Do also think there are solutions that are better? Thank you Link to comment Share on other sites More sharing options...
mattstyles Posted October 2, 2016 Share Posted October 2, 2016 ws is still like the grandaddy of JS websocket implementation, socket.io is built on top of it (although they have engine.io now as well), there is the micro-websockets library which looks interesting (looks like it powers deepstream.io, another service that looks interesting). ws is quite low level, but its reasonably fast because of it. socket.io adds some extra sugar which you may or may not need. Start with a simple chat example, there are many out there, including a decent basic one on the socket.io home page. A whole load of implementations just built on top of the basic blocks used in the chat examples so the patterns should serve you well for quite a while (depending on the complexity of what you want to create of course). PhasedEvolution 1 Link to comment Share on other sites More sharing options...
Recommended Posts