W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2009

html5/websockets Overview.html,1.83,1.84

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 07 Jul 2009 04:12:11 +0000
To: public-html-commits@w3.org
Message-Id: <E1MO22N-0006g3-4R@lionel-hutz.w3.org>
Update of /sources/public/html5/websockets
In directory hutz:/tmp/cvs-serv25639

Modified Files:
	Overview.html 
Log Message:
Mention explicit what happens in case of failure during WebSocket creation. (whatwg r3364)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/websockets/Overview.html,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- Overview.html	7 Jul 2009 03:59:39 -0000	1.83
+++ Overview.html	7 Jul 2009 04:12:08 -0000	1.84
@@ -388,11 +388,21 @@
    single U+003F QUESTION MARK (?) character to <var title="">resource
    name</var>, followed by the value of the <span title="url-query">&lt;query&gt;</span> component.</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).</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
   scope</span> is either a <code>Window</code> object or an object
Received on Tuesday, 7 July 2009 04:12:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 7 July 2009 04:12:20 GMT