Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Make send() not fire an exception if called after the connecti…
…on has closed.

git-svn-id: http://svn.whatwg.org/webapps@3363 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 7, 2009
1 parent 19325e1 commit eada61e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions source
Expand Up @@ -70096,15 +70096,16 @@ interface <dfn>WebSocket</dfn> {

<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>
Expand Down

0 comments on commit eada61e

Please sign in to comment.