I\'m working on a project utilizing Server-Sent-Events and have just run into something interesting: connection loss is handled differently between Chrome and Firefox.
O
What I've noticed (in Chrome at least) is that when you close your SSE connection using close() function, it won't try to reconnect again.
close()
var sse = new EventSource("..."); sse.onerror = function() { sse.close(); };