Re:WebSockets: Stable and Ready for Developers
by leggetter on Thursday April 19, 2012 @12:48PM
(#3863911)
Great idea. Exactly what somebody should have done with HTTP Long-Polling and Streaming (XHR, IFRAME, ActiveX etc.) but without a standardised API it was difficult. The WebSockets API let's us do this.
That's exactly what I thought and that's why SockJS is there: https://github.com/sockjs/sockjs-client
SockJS has a websocket-like API so no need to do major code changes when you switch.</shameless plug>