WebSocket.binaryType

这篇翻译不完整。请帮忙从英语翻译这篇文章

WebSocket.binaryType 返回websocket连接所传输二进制数据的类型。

语法

var binaryType = aWebSocket.binaryType;

返回值

 一条DOMString:

"blob"
如果传输的是 Blob 类型的数据。
"arraybuffer"
如果传输的是 ArrayBuffer 类型的数据。

 

规范

Specification Status Comment
HTML Living Standard
WebSocket: binaryType
Living Standard Initial definition

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari ? WebView Android ? Chrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

文档标签和贡献者

此页面的贡献者: snowwolfjay, jaredhan418
最后编辑者: snowwolfjay,