Jump to content

Implement multiplayer: sockets?


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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