News for hackers. Stuff that matters.
Re:WebSockets: Stable and Ready for Developers by leggetter on Thursday April 19, 2012 @09:02AM (#3862728)
By a guy from Microsoft so plenty of MS examples/links, but a good overview of WebSockets never the less. I'm interested to hear how many of use will ever actually use the `WebSocket` object? Will we (developers) always use a library offering a layer of abstraction and the real core functionality that we need.
Re:WebSockets: Stable and Ready for Developers by TazeTSchnitzel on Thursday April 19, 2012 @10:27AM (#3863142)
The WebSocket API is very simple, there wouldn't be much need to abstract it.
Re:WebSockets: Stable and Ready for Developers by leggetter on Thursday April 19, 2012 @11:01AM (#3863311)
The point in abstraction in this case is to add additional functionality.

The most obvious option, and something I thought might have become part of the WebSocket API, is auto-reconnection. To reconnect you need to create another WebSocket object and reattach all your event listeners. So, I'm convinced that the majority of people who use WebSockets will have to write their own custom code for this and will probably put it in their own little library which wraps around using WebSocket objects.

More info in the comment here: http://www.sitepoint.com/websockets-stable-and-ready-for-dev...