Reputation: 173
I'm currently studying SSE's. In the w3 specifications it says:
A reconnection time, in milliseconds. This must initially be a user-agent-defined value, probably in the region of a few seconds.
Source: http://www.w3.org/TR/eventsource/#concept-event-stream-reconnection-time
How I understand this is that each webbrowser has a default reconnection time, but I can't seem to find the exact values?
Upvotes: 3
Views: 774
Reputation: 28978
From the footnote on p.65 of Data Push Apps with HTML5 SSE:
At the time of writing, it is 3 seconds in Chrome and Safari (see core/page/EventSource.cpp in the WebKit or Blink source code) and 5 seconds in Firefox (see content/base/src/EventSource.cpp in the Mozilla source code).
(I just checked and those are still the current values.)
Upvotes: 2