Skip to main content
API Reference / modelence / index / WebsocketClientProvider Defined in: src/websocket/types.ts:10

Methods

emit()

emit(props): void
Defined in: src/websocket/types.ts:15

Parameters

ParameterType
props{ category: string; eventName: string; id: string; }
props.categorystring
props.eventNamestring
props.idstring

Returns

void

init()

init(props): void
Defined in: src/websocket/types.ts:11

Parameters

ParameterType
props{ channels?: ClientChannel<unknown>[]; }
props.channels?ClientChannel<unknown>[]

Returns

void

joinChannel()

joinChannel(props): void
Defined in: src/websocket/types.ts:16

Parameters

ParameterType
props{ category: string; id: string; }
props.categorystring
props.idstring

Returns

void

leaveChannel()

leaveChannel(props): void
Defined in: src/websocket/types.ts:17

Parameters

ParameterType
props{ category: string; id: string; }
props.categorystring
props.idstring

Returns

void

off()

off<T>(props): void
Defined in: src/websocket/types.ts:14

Type Parameters

Type Parameter
T

Parameters

ParameterType
props{ category: string; listener: (data) => void; }
props.categorystring
props.listener(data) => void

Returns

void

on()

on<T>(props): void
Defined in: src/websocket/types.ts:12

Type Parameters

Type Parameter
T

Parameters

ParameterType
props{ category: string; listener: (data) => void; }
props.categorystring
props.listener(data) => void

Returns

void

once()

once<T>(props): void
Defined in: src/websocket/types.ts:13

Type Parameters

Type Parameter
T

Parameters

ParameterType
props{ category: string; listener: (data) => void; }
props.categorystring
props.listener(data) => void

Returns

void