Jump to content

Implement multiplayer: sockets?


PhasedEvolution
 Share

Recommended Posts

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).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...