API reference / @evolu/common / WebSocket

WebSocket

Websocket with auto-reconnect and offline support

Interfaces

InterfaceDescription
CreateWebSocketDep-
WebSocketWebSocket with auto-reconnect and offline support.
WebSocketConnectErrorAn error that occurs when a connection cannot be established due to a network error.
WebSocketConnectionCloseError-
WebSocketConnectionErrorAn error that occurs when a connection is closed due to an issue (e.g., failure to send some data).
WebSocketOptionsOptions for creating WebSocket
WebSocketSendErrorAn error that occurs when trying to send data but WebSocket is connecting.

Type Aliases

Type AliasDescription
CreateWebSocket-
WebSocketError-
WebSocketReadyStateWebSocket connection states.
WebSocketRetryError-

Variables

VariableDescription
createWebSocketCreate a new WebSocket.

Was this page helpful?