EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

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

 

 

Afficher:
© 2015 Microsoft