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

html5/websockets Overview.html,1.84,1.85

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 07 Jul 2009 04:26:30 +0000
To: public-html-commits@w3.org
Message-Id: <E1MO2GE-0006oO-O2@lionel-hutz.w3.org>
Update of /sources/public/html5/websockets
In directory hutz:/tmp/cvs-serv26170

Modified Files:
	Overview.html 
Log Message:
Rename disconnect() to close() for consistency with the event names. (whatwg r3365)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/websockets/Overview.html,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- Overview.html	7 Jul 2009 04:12:08 -0000	1.84
+++ Overview.html	7 Jul 2009 04:26:28 -0000	1.85
@@ -336,7 +336,7 @@
            attribute <span>Function</span> <a href="#handler-websocket-onmessage" title="handler-WebSocket-onmessage">onmessage</a>;
            attribute <span>Function</span> <a href="#handler-websocket-onclose" title="handler-WebSocket-onclose">onclose</a>;
   void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(in DOMString data);
-  void <a href="#dom-websocket-disconnect" title="dom-WebSocket-disconnect">disconnect</a>();
+  void <a href="#dom-websocket-close" title="dom-WebSocket-close">close</a>();
 };</pre><p><code><a href="#websocket">WebSocket</a></code> objects must also implement the
   <code>EventTarget</code> interface. <a href="#references">[DOM3EVENTS]</a>
 
@@ -430,7 +430,7 @@
   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>The <dfn id="dom-websocket-disconnect" title="dom-WebSocket-disconnect"><code>disconnect()</code></dfn>
+  unpaired surrogates, then the user agent must <span>send <var title="">data</var> using the Web Socket</span>.<p>The <dfn id="dom-websocket-close" 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 title="event-close">close</code> event to be fired and
Received on Tuesday, 7 July 2009 04:26:39 GMT

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