Skip to content

Variable: WebSocketReadyState ​

ts
const WebSocketReadyState: object;

Standard WebSocket ready-state values shared by Node.js and browsers.

Type Declaration ​

CLOSED ​

ts
readonly CLOSED: 3 = 3;

CLOSING ​

ts
readonly CLOSING: 2 = 2;

CONNECTING ​

ts
readonly CONNECTING: 0 = 0;

OPEN ​

ts
readonly OPEN: 1 = 1;

Built by Siebly. Open source SDKs for exchange APIs.