Skip to main content
Version: 11.x

Function: createWSClient()

createWSClient(opts): object

Parameters

ParameterType
optsWebSocketClientOptions

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

ParameterType
opOperation
callbacksWSCallbackObserver< AnyRouter, unknown >

Returns

UnsubscribeFn

Source

packages/client/dist/links/wsLink.d.ts:49


Generated using TypeDoc and typedoc-plugin-markdown