WebsocketReadyState
readyState
values of a WebSocket - read without the global, which some runtimes don't have
Import
import { WebsocketReadyState } from "@hyper-fetch/sockets"
Source
Package
Preview
const WebsocketReadyState = { CLOSED: 3; CLOSING: 2; CONNECTING: 0; OPEN: 1 }
Structure
WebsocketReadyState
| Name | Type | Description |
|---|---|---|
| CLOSED | | |
| CLOSING | | |
| CONNECTING | | |
| OPEN | |

