콘텐츠로 이동

WebSocketState

이 콘텐츠는 아직 번역되지 않았습니다.

type WebSocketState =
| {
status: "disconnected";
websocket: undefined;
}
| {
status: "connecting";
websocket: WebSocket;
}
| {
status: "connected";
websocket: WebSocket;
};

The connection state of the WebSocket connection.