User:Mpr312/WebSocket

WebSockets are new to Html5

[Constructor(in DOMString url, optional in DOMString protocol)] interface WebSocket { readonly attribute DOMString URL;

// ready state const unsigned short CONNECTING = 0; const unsigned short OPEN = 1; const unsigned short CLOSED = 2; readonly attribute unsigned short readyState; readonly attribute unsigned long bufferedAmount;

// networking attribute Function onopen; attribute Function onmessage; attribute Function onclose; boolean send(in DOMString data); void close; };