briri/sse_example — pull request #2 by scollett (2014-01-11 01:59:09+00:00)
Title: Condensed into one app, added a heartbeat

I was finding it easier to manage as a single application with a client and server side component. Also, I added a heartbeat to the stream from server --> clients. I was reading that HTTP closes connections every ~30 seconds. Since SSE is over HTTP, this was the cause of the errors. This is not as much of a problem with web sockets because it's not over HTTP so an idle connection is left open much longer.