Skip to content

Commit

Permalink
[e] (0) Mention explicit what happens in case of failure during WebSo…
Browse files Browse the repository at this point in the history
…cket creation.

git-svn-id: http://svn.whatwg.org/webapps@3364 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 7, 2009
1 parent eada61e commit cd72290
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions source
Expand Up @@ -70050,12 +70050,25 @@ interface <dfn>WebSocket</dfn> {
name</var>, followed by the value of the <span
title="url-query">&lt;query&gt;</span> component.</p></li>

<li><p><span>Establish a Web Socket connection</span> to a host
<var title="">host</var>, on port <var title="">port</var> (if one
was specified), from <var title="">origin</var>, with the flag <var
title="">secure</var>, with <var title="">resource name</var> as
the resource name, and with <var title="">protocol</var> as the
protocol (if it is present).</p></li>
<li>

<p><span>Establish a Web Socket connection</span> to a host <var
title="">host</var>, on port <var title="">port</var> (if one was
specified), from <var title="">origin</var>, with the flag <var
title="">secure</var>, with <var title="">resource name</var> as
the resource name, and with <var title="">protocol</var> as the
protocol (if it is present).</p>

<p class="note">If the "<span>establish a Web Socket
connection</span>" algorithm fails, it triggers the "<span>fail
the Web Socket connection</span>" algorithm, which then invokes
the "<span>close the Web Socket connection</span>" algorithm,
which then establishes that the "<span>Web Socket connection is
closed</span>", which fires the <code
title="event-close">close</code> event <a
href="#closeWebSocket">as described below</a>.</p>

</li>

</ol>

Expand Down

0 comments on commit cd72290

Please sign in to comment.