http://caniuse.com/#feat=websockets
I would love to use web sockets in my app to replace long polling but without IE/Android, it's a non-starter.
http://caniuse.com/#feat=websockets
I would love to use web sockets in my app to replace long polling but without IE/Android, it's a non-starter.
That's exactly what I thought and that's why SockJS is there: https://github.com/sockjs/sockjs-client
a) start using SockJS
b) wait until enough browsers supports it
c) drop SockJS.
SockJS has a websocket-like API so no need to do major code changes when you switch.</shameless plug>
It's not rocket science.
(Mibbit has been using websocket in production for 2.5 years or so)
P.S. "It's not rocket science" snark completely uncalled for.
I've seen this statement, or similar, a few times. But, Comet servers use WebSockets. So, WebSockets are not an alternative to Comet. They are a transport technology that is better suited to the Comet paradigm, and building interactive web apps, than HTTP (Long-Polling, Streaming). Here's a diagram I create a while back which hopefully explains my point of view: http://i.stack.imgur.com/BOFC2.png
Spot-on about the benefits of WebSockets over HTTP-based solutions when it comes to efficiency. The HTTP connection limit was a problem a while back but I don't believe it is any more.