Skip to main content
Version: 11.x

Function: createWSClient()

createWSClient(opts): object

Parameters

ParameterType
optsWebSocketClientOptions

Returns

close

close: () => void

Returns

void

request

request: (op, callbacks) => UnsubscribeFn

Parameters

ParameterType
opOperation
callbacksWSCallbackObserver< AnyRouter, unknown >

Returns

UnsubscribeFn

connection

get connection(): null | Connection

Source

packages/client/src/links/wsLink.ts:80


Generated using TypeDoc and typedoc-plugin-markdown