Skip to content

Commit

Permalink
[] (0) Make EventSource available to workers, and add some notes to E…
Browse files Browse the repository at this point in the history
…ventSource's definition that clarifies how to reduce the number of connections per server. (credit: jf)

git-svn-id: http://svn.whatwg.org/webapps@2993 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 26, 2009
1 parent 451a98d commit fd6b390
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions source
Expand Up @@ -60862,6 +60862,9 @@ interface <dfn>SharedWorker</dfn> : <span>AbstractWorker</span> {
<li><p>The <code>WebSocket</code> interface object and
constructor. <a href="#refsWEBSOCKET">[WEBSOCKET]</a></p></li>

<li><p>The <code>EventSource</code> interface object and
constructor. <a href="#refsEVENTSOURCE">[EVENTSOURCE]</a></p></li>

<li><p>The <code>MessageChannel</code> interface object and
constructor. <a href="#refsHTML5">[HTML5]</a></p></li>

Expand Down Expand Up @@ -61098,8 +61101,18 @@ interface <dfn>EventSource</dfn> {
<li><p>Return a new <code>EventSource</code> object, and continue
these steps in the background (without blocking scripts).</p></li>

<li><p><span>Fetch</span> the resource identified by the resulting
<span>absolute URL</span>, as described below.</p></li>
<li>

<p><span>Fetch</span> the resource identified by the resulting
<span>absolute URL</span>, and process it as described below.</p>

<p class="note">The definition of the <span
title="fetch">fetching</span> algorithm is such that if the
browser is already fetching the resource identified by the given
<span>absolute URL</span>, that connection can be reused, instead
of a new connection being established.</p>

</li>

</ol>

Expand Down Expand Up @@ -61655,7 +61668,9 @@ data:&nbsp;test</pre>
domain. Authors can avoid this using the relatively complex
mechanism of using unique domain names per connection, or by
allowing the user to enable or disable the <code>EventSource</code>
functionality on a per-page basis.</p>
functionality on a per-page basis, or by sharing a single
<code>EventSource</code> object using a <span
title="SharedWorkerGlobalScope">shared worker</span>.</p>

<hr>

Expand Down

0 comments on commit fd6b390

Please sign in to comment.