[html5] r3363 - [] (0) Make send() not fire an exception if called after the connection has closed.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Jul 6 20:59:37 PDT 2009
Author: ianh
Date: 2009-07-06 20:59:36 -0700 (Mon, 06 Jul 2009)
New Revision: 3363
Modified:
source
Log:
[] (0) Make send() not fire an exception if called after the connection has closed.
Modified: source
===================================================================
--- source 2009-07-07 03:55:17 UTC (rev 3362)
+++ source 2009-07-07 03:59:36 UTC (rev 3363)
@@ -70096,15 +70096,16 @@
<p>The <dfn title="dom-WebSocket-send"><code>send(<var
title="">data</var>)</code></dfn> method transmits data using the
- connection. If the connection is not established (<code
- title="dom-WebSocket-readyState">readyState</code> is not <code
- title="dom-WebSocket-OPEN">OPEN</code>), it must raise an
- <code>INVALID_STATE_ERR</code> exception. If the <var
- title="">data</var> argument has any unpaired surrogates, then it
- must raise <code>SYNTAX_ERR</code>. If the connection <em>is</em>
- established, and the string has no unpaired surrogates, then the
- user agent must <span>send <var title="">data</var> using the Web
- Socket</span>.</p>
+ connection. If the connection has not yet been established (<code
+ title="dom-WebSocket-readyState">readyState</code> is <code
+ title="dom-WebSocket-CONNECTING">CONNECTING</code>), it must raise
+ an <code>INVALID_STATE_ERR</code> exception. (No exception is raised
+ if the connection was once established but has subsequently been
+ closed, however.) If the <var title="">data</var> argument has any
+ unpaired surrogates, then it must raise <code>SYNTAX_ERR</code>. If
+ the connection <em>is</em> established, and the string has no
+ unpaired surrogates, then the user agent must <span>send <var
+ title="">data</var> using the Web Socket</span>.</p>
<p>The <dfn
title="dom-WebSocket-disconnect"><code>disconnect()</code></dfn>
More information about the Commit-Watchers
mailing list