Skip to content

Commit

Permalink
[] (0) Rename disconnect() to close() for consistency with the event …
Browse files Browse the repository at this point in the history
…names.

git-svn-id: http://svn.whatwg.org/webapps@3365 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 7, 2009
1 parent cd72290 commit b5492fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source
Expand Up @@ -69316,7 +69316,7 @@ interface <dfn>EventSource</dfn> {
attribute <span>Function</span> <span title="handler-EventSource-onopen">onopen</span>;
attribute <span>Function</span> <span title="handler-EventSource-onmessage">onmessage</span>;
attribute <span>Function</span> <span title="handler-EventSource-onerror">onerror</span>;
void <span title="dom-EventSource-disconnect">disconnect</span>();
void <span title="dom-EventSource-close">close</span>();
};</pre>

<p><code>EventSource</code> objects must also implement the
Expand Down Expand Up @@ -69389,7 +69389,7 @@ interface <dfn>EventSource</dfn> {

<dd>The connection is not open, and the user agent is not trying to
reconnect. Either there was a fatal error or the <code
title="dom-EventSource-disconnect">disconnect()</code> method was
title="dom-EventSource-close">close()</code> method was
invoked.</dd>

</dl>
Expand All @@ -69401,7 +69401,7 @@ interface <dfn>EventSource</dfn> {
changes.</p>

<p>The <dfn
title="dom-EventSource-disconnect"><code>disconnect()</code></dfn>
title="dom-EventSource-close"><code>close()</code></dfn>
method must close the connection, if any, and must set the <code
title="dom-EventSource-readyState">readyState</code> attribute to
<code title="dom-EventSource-CLOSED">CLOSED</code>. If the
Expand Down Expand Up @@ -69979,7 +69979,7 @@ interface <dfn>WebSocket</dfn> {
attribute <span>Function</span> <span title="handler-WebSocket-onmessage">onmessage</span>;
attribute <span>Function</span> <span title="handler-WebSocket-onclose">onclose</span>;
void <span title="dom-WebSocket-send">send</span>(in DOMString data);
void <span title="dom-WebSocket-disconnect">disconnect</span>();
void <span title="dom-WebSocket-close">close</span>();
};</pre>

<p><code>WebSocket</code> objects must also implement the
Expand Down Expand Up @@ -70121,7 +70121,7 @@ interface <dfn>WebSocket</dfn> {
title="">data</var> using the Web Socket</span>.</p>

<p>The <dfn
title="dom-WebSocket-disconnect"><code>disconnect()</code></dfn>
title="dom-WebSocket-close"><code>close()</code></dfn>
method must <span>close the Web Socket connection</span> or
connection attempt, if any. If the connection is already closed, it
must do nothing. Closing the connection causes a <code
Expand Down

0 comments on commit b5492fe

Please sign in to comment.