Function: createWSClient()
createWSClient(
opts):object
Parameters
| Parameter | Type |
|---|---|
opts | WebSocketClientOptions |
Returns
close
close: () => void
Returns
void
connection
readonly connection: {id: number;} & {state: "open"; ws: WebSocket;} | {state: "closed"; ws: WebSocket;} | {state: "connecting"; ws: WebSocket;} | null
request
request: (op, callbacks) => UnsubscribeFn
Parameters
| Parameter | Type |
|---|---|
op | Operation |
callbacks | WSCallbackObserver< AnyRouter, unknown > |
Returns
UnsubscribeFn
Source
packages/client/dist/links/wsLink.d.ts:49
Generated using TypeDoc and typedoc-plugin-markdown