Export (0) Print
Expand All

binaryType property

Returns the type of data received by onmessage.

This property is read/write.

Syntax

JavaScript
object.binaryType = binaryType
binaryType = object.binaryType

Property values

Type: DOMString

The type of data received.

ValueCondition
blob

Represents raw data. The event's data property is initialized to a blob object. See msStreamReader.readAsBlob.

arrayBuffer

Represents a binary data buffer. The event's data property is initialized to an ArrayBuffer object. See FileReader.readAsArrayBuffer.

 

See also

WebSocket

 

 

Show:
© 2014 Microsoft