WebSocket.readyState
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
概要
返回当前 WebSocket
的链接状态,只读。
语法
var readyState = WebSocket.readyState;
值
Specifications
Specification |
---|
WebSockets Standard # ref-for-dom-websocket-readystate① |
Browser compatibility
BCD tables only load in the browser