[html5] r3364 - [e] (0) Mention explicit what happens in case of failure during WebSocket creation.

whatwg at whatwg.org whatwg at whatwg.org
Mon Jul 6 21:12:06 PDT 2009


Author: ianh
Date: 2009-07-06 21:12:05 -0700 (Mon, 06 Jul 2009)
New Revision: 3364

Modified:
   source
Log:
[e] (0) Mention explicit what happens in case of failure during WebSocket creation.

Modified: source
===================================================================
--- source	2009-07-07 03:59:36 UTC (rev 3363)
+++ source	2009-07-07 04:12:05 UTC (rev 3364)
@@ -70050,13 +70050,26 @@
    name</var>, followed by the value of the <span
    title="url-query"><query></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>
 
   <p>This constructor must be visible when the <span>script's global




More information about the Commit-Watchers mailing list