Skip to main content
Version: v10.0.0

WebsocketReadyState

readyState values of a WebSocket - read without the global, which some runtimes don't have


Import
import { WebsocketReadyState } from "@hyper-fetch/sockets"

Preview​

const WebsocketReadyState = { CLOSED: 3; CLOSING: 2; CONNECTING: 0; OPEN: 1 }

Structure​

WebsocketReadyState
NameTypeDescription
CLOSED
3
CLOSING
2
CONNECTING
0
OPEN
1