Comment

Comment by robmueller

SSE is great. We wrote about it in quite a bit of detail a while back.

http://blog.fastmail.fm/2012/01/09/building-the-new-ajax-mai...

There's a couple of annoying caveats

1. The "retry" nature of the connection isn't quite as reliable as suggested. See the blog post above for more details

2. NAT timeouts. Make sure you have some sort of "ping" either at application or TCP level.

http://blog.fastmail.fm/2013/05/28/push-events-nat-tcp-conne... http://blog.fastmail.fm/2011/06/28/http-keep-alive-connectio...

3. Each SSE connection is regarded as a regular site connection. So if people open up 6 tabs to your site, you might suddenly find your site is unresponsive to users because every available connection is used by an SSE connection. You might need to implement some inter-tab communication system instead.

http://blog.fastmail.fm/2012/11/26/inter-tab-communication-u...

parent robmueller 12 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton