The WebSocket.binaryType
property returns the type of
binary data being transmitted by the connection.
Syntax
var binaryType = aWebSocket.binaryType;
Value
A DOMString
:
"blob"
- If
Blob
objects are used. "arraybuffer"
- If
ArrayBuffer
objects are used.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'WebSocket: binaryType' in that specification. |
Living Standard | Initial definition |
Browser compatibility
BCD tables only load in the browser