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 AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
binaryTypeChrome Full support YesEdge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

文档标签和贡献者

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