A WebSocket Primer
caitiem.com
A WebSocket Primer
1–10 of 24 posts
Re: A WebSocket Primer
#2Re: A WebSocket Primer
#3Re: A WebSocket Primer
#4http://www.html5rocks.com/en/tutorials/eventsource/basics/
SSE is realtime server->client protocol that's fully compatible with HTTP and has lower handshake overhead (no Upgrade roundtrip, doesn't require HTTPS to go through proxies).
Re: A WebSocket Primer
#5It's funny that the article says "This enables server sent events" without actually referring to the HTML5 Server Sent Events API : http://www.html5rocks.com/en/tutorials/eventsource/basics/ SSE is realtime server->client protocol that's fully compatible with HTTP and has lower handshake overhead (no Upgrade roundtrip, doesn't require HTTPS to go through proxies).
Re: A WebSocket Primer
#6It's funny that the article says "This enables server sent events" without actually referring to the HTML5 Server Sent Events API : http://www.html5rocks.com/en/tutorials/eventsource/basics/ SSE is realtime server->client protocol that's fully compatible with HTTP and has lower handshake overhead (no Upgrade roundtrip, doesn't require HTTPS to go through proxies).
Re: A WebSocket Primer
#7Related: definitely check out https://github.com/sockjs
Re: A WebSocket Primer
#8Related: definitely check out https://github.com/sockjs
Also check out https://github.com/primus/primus It's an abstraction layer over sockjs, socket.io, etc.
The idea of being able to insulate the rest of the code from the specifics of which lower-level library I'm using is very attractive. On the other hand, any abstraction layer can introduce bugs in its own right. Thoughts about the tradeoff?
Re: A WebSocket Primer
#9Earlier quoted context omitted.
Also check out https://github.com/primus/primus It's an abstraction layer over sockjs, socket.io, etc.
Does any have experiences with Primus they can share? The idea of being able to insulate the rest of the code from the specifics of which lower-level library I'm using is very attractive. On the other hand, any abstraction layer can introduce bugs in its own right. Thoughts about the tradeoff?
Re: A WebSocket Primer
#10Earlier quoted context omitted.
Also check out https://github.com/primus/primus It's an abstraction layer over sockjs, socket.io, etc.
Does any have experiences with Primus they can share? The idea of being able to insulate the rest of the code from the specifics of which lower-level library I'm using is very attractive. On the other hand, any abstraction layer can introduce bugs in its own right. Thoughts about the tradeoff?
Arnout Kazemier (the lead dev) is a really nice guy and when I pinged him about the egine.io bug, he pushed out a change to Primus 24 hours later that worked around the bug and let me continue to use engine.io as the transformer.
YMMV but so far I've no regrets using it.