WebSocket : EventTarget
WebSockets are a persistent connection to a server that allows sending and receiving data. See also EventSource.
Instance Properties
binaryType : String
Set to either 'arraybuffer'
or 'blob'
to choose if the MessageEvent.data property will be an ArrayBuffer or a Blob for binary data received by the WebSocket.
Example:
RunResults:
readyState : Number
One of WebSocket.CONNECTING
, WebSocket.OPEN
, WebSocket.CLOSING
, or WebSocket.CLOSED
.
Example:
RunResults:
WebSocket Properties
CONNECTING : Number
The value of readyState after constructing the WebSocket and before onopen fires.
Copyright © JavaScripture Contributors