I noticed I’m getting tired of trying to make games with high level programming languages like C#, using OpenTK. C or C++ stills looks a little out of range for my humble self. I just got the sudden urge to get back to some web development and try to make a browser game – in pure HTML5+JS of course!
And while I think I can figure out the canvas myself sooner or later, with the help of ze internetz, I just don’t quite know how I should handle networking.
WebSockets seem interesting, but are they the right way to go, seeing as they’re still pretty undeveloped? AJAX sounds a little slow and bulky. I don’t plan to make a game that requires very low latency, but I do want to keep it low enough to play smoothly.
What would you suggest?
I think what you are looking for is the comet technology which is used to implement server push technology. You can find more information from following links:
http://en.wikipedia.org/wiki/Comet_(programming)
http://infrequently.org/2006/03/comet-low-latency-data-for-the-browser/