- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 05 Aug 2011 23:44:11 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/websockets In directory hutz:/tmp/cvs-serv22006 Modified Files: Overview.html Log Message: Move the Web to a world where things that implement EventTarget just inherit from it. I, for one, now welcome our new EventTarget overlords. (whatwg r6378) Index: Overview.html =================================================================== RCS file: /sources/public/html5/websockets/Overview.html,v retrieving revision 1.233 retrieving revision 1.234 diff -u -d -r1.233 -r1.234 --- Overview.html 5 Aug 2011 23:34:55 -0000 1.233 +++ Overview.html 5 Aug 2011 23:44:09 -0000 1.234 @@ -411,7 +411,7 @@ being retrieved (e.g. by author script), and is said to be <em>setting</em> when a new value is assigned to it.<h2 id="the-websocket-interface"><span class="secno">4 </span>The <code><a href="#websocket">WebSocket</a></code> interface</h2><pre class="idl">[<a href="#dom-websocket" title="dom-WebSocket">Constructor</a>(in DOMString url, in optional DOMString protocols), <a href="#dom-websocket" title="dom-WebSocket">Constructor</a>(in DOMString url, in optional DOMString[] protocols)] -interface <dfn id="websocket">WebSocket</dfn> { +interface <dfn id="websocket">WebSocket</dfn> : <span>EventTarget</span> { readonly attribute DOMString <a href="#dom-websocket-url" title="dom-WebSocket-url">url</a>; // ready state @@ -436,8 +436,7 @@ void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(in DOMString data); void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(in <span>ArrayBuffer</span> data); void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(in <span>Blob</span> data); -}; -<a href="#websocket">WebSocket</a> implements <span>EventTarget</span>;</pre><p>The <dfn id="dom-websocket" title="dom-WebSocket"><code>WebSocket(<var title="">url</var>, <var title="">protocols</var>)</code></dfn> +};</pre><p>The <dfn id="dom-websocket" title="dom-WebSocket"><code>WebSocket(<var title="">url</var>, <var title="">protocols</var>)</code></dfn> constructor takes one or two arguments. The first argument, <var title="">url</var>, specifies the <span>URL</span> to which to connect. The second, <var title="">protocols</var>, if present, is either a string or an array of strings. If it is a string, it is
Received on Friday, 5 August 2011 23:44:16 UTC