Reference Index > Browser Objects
};interface WebSocket {readonly attribute USVString url; const unsigned short CONNECTING = 0; const unsigned short OPEN = 1; const unsigned short CLOSING = 2; const unsigned short CLOSED = 3;readonly attribute unsigned short readyState;readonly attribute unsigned long long bufferedAmount;attribute EventHandler onopen;attribute EventHandler onerror;attribute EventHandler onclose;readonly attribute DOMString extensions;readonly attribute DOMString protocol; void close(optional [Clamp] unsigned short code, optional USVString reason);attribute EventHandler onmessage;attribute BinaryType binaryType; void send(USVString data); void send(Blob data); void send(ArrayBuffer data); void send(ArrayBufferView data); };
Function | Implementation status |
close | Dummy |
send | Dummy |
Device type | Support Status |
Desktop PC browsers | Yes |
HBBTV 1.5 devices | Yes |
HBBTV 2.0.x devices | Yes |
This page has been generated automatically from source code by the CoyoteBrowser InfoTool on Tue Jan 05 16:54:08 2021 . Some design elements from MDN are used under CC-BY-SA license from "Mozilla Contributors".