Skip to content

Commit

Permalink
[e] (0) Make clear that EventSource objects don't reconnect on failure.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2875 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 27, 2009
1 parent e460644 commit 39b1845
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 6 additions & 3 deletions index
Expand Up @@ -45846,13 +45846,16 @@ interface <dfn id=eventsource>EventSource</dfn> {
<code title=event-error><a href=#event-error>error</a></code> at the
<code><a href=#eventsource>EventSource</a></code> object, and then <a href=#fetch>fetch</a> the
event source resource again after a delay equal to the reconnection
time of the event source.</p>
time of the event source. <strong>Only if the user agent <a href=#reset-the-connection title="reset the connection">resets the connection</a> does the
connection get opened anew!</strong></p>

<p>When a user agent is to <dfn id=fail-the-connection>fail the connection</dfn>, the user
agent must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
<code title=dom-EventSource-CLOSED><a href=#dom-eventsource-closed>CLOSED</a></code> and <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error><a href=#event-error>error</a></code> at the
<code><a href=#eventsource>EventSource</a></code> object.</p>
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error><a href=#event-error>error</a></code> at the <code><a href=#eventsource>EventSource</a></code>
object. <strong>Once the user agent has <a href=#fail-the-connection title="fail the
connection">failed the connection</a>, it does <em>not</em>
attempt to reconnect!</strong></p>

<hr><p>The <a href=#task-source>task source</a> for any <a href=#concept-task title=concept-task>tasks</a> that are <a href=#queue-a-task title="queue a
task">queued</a> by <code><a href=#eventsource>EventSource</a></code> objects is the
Expand Down
10 changes: 7 additions & 3 deletions source
Expand Up @@ -52372,15 +52372,19 @@ interface <dfn>EventSource</dfn> {
<code title="event-error">error</code> at the
<code>EventSource</code> object, and then <span>fetch</span> the
event source resource again after a delay equal to the reconnection
time of the event source.</p>
time of the event source. <strong>Only if the user agent <span
title="reset the connection">resets the connection</span> does the
connection get opened anew!</strong></p>

<p>When a user agent is to <dfn>fail the connection</dfn>, the user
agent must set the <code
title="dom-EventSource-readyState">readyState</code> attribute to
<code title="dom-EventSource-CLOSED">CLOSED</code> and <span>queue a
task</span> to <span>fire a simple event</span> named <code
title="event-error">error</code> at the
<code>EventSource</code> object.</p>
title="event-error">error</code> at the <code>EventSource</code>
object. <strong>Once the user agent has <span title="fail the
connection">failed the connection</span>, it does <em>not</em>
attempt to reconnect!</strong></p>

<hr>

Expand Down

0 comments on commit 39b1845

Please sign in to comment.