4 ms·
<shameless plug> That's exactly what I thought and that's why SockJS is there: https://github.com/sockjs/sockjs-client https://github.com/sockjs/sockjs-client
by majke 15y ago
<shameless plug>
That's exactly what I thought and that's why SockJS is there: https://github.com/sockjs/sockjs-client 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>
- leggetter 15y agoGreat 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.