I have just started HTML5 game development, I made a couple of games using the canvas, accessing it with Javascript.
I wonder, though, about how I can make multiplayer online games. Do I necessarily need to use server side stuff for this?
I’ve heard of HTML5 Sockets, are there other alternatives?
Thank you.
EDIT: Any simple example or links are very much appreciated.
You need a server, P2P doesn’t work yet between browsers. See: Do I need a server to use HTML5's WebSockets?
Websocket (HTML5 sockets) is a way to have a bi-directional open connection between the browser and your server. Otherwise you’ll have to work using XHR (aka Ajax) which is pull only. Mozilla wrote a great article explaining how they built: BrowserQuest (or just play it: http://browserquest.mozilla.org/)
Alternatives are generally based on Flash XMLSocket!