Die Eigenschaft WebSocket.binaryType
gibt den Typ von Binärdaten zurück, der übertragen wird.
Syntax
var binaryType = aWebSocket.binaryType;
Wert
Ein DOMString
:
"blob"
- Wenn
Blob
Objekte benutzt werden. "arraybuffer"
- Wenn
ArrayBuffer
Objekte benutzt werden.
Spezifikationen
Spezifikation | Status | Kommentar |
---|---|---|
HTML Living Standard Die Definition von 'WebSocket: binaryType' in dieser Spezifikation. |
Lebender Standard | Initial definition |
Browser Kompatibilität
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.