WebSocket.protocol

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

WebSocket.protocol 是一个只读属性用于返回服务器端选中的子协议的名字;这是在创建 WebSocket 对象时所指定的 protocols 参数其中之一的字符串。

语法

var protocol = aWebSocket.protocol;

DOMString.

Specifications

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

Browser compatibility

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

文档标签和贡献者

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