Skip to main content
API Reference / modelence / client / ClientChannel Defined in: src/websocket/clientChannel.ts:3

Type Parameters

Type ParameterDefault type
Tunknown

Constructors

Constructor

new ClientChannel<T>(category, onMessage): ClientChannel<T>
Defined in: src/websocket/clientChannel.ts:7

Parameters

ParameterType
categorystring
onMessage(data) => void

Returns

ClientChannel<T>

Properties

PropertyModifierTypeDefined in
categoryreadonlystringsrc/websocket/clientChannel.ts:4

Methods

init()

init(): void
Defined in: src/websocket/clientChannel.ts:12

Returns

void

joinChannel()

joinChannel(id): void
Defined in: src/websocket/clientChannel.ts:19

Parameters

ParameterType
idstring

Returns

void

leaveChannel()

leaveChannel(id): void
Defined in: src/websocket/clientChannel.ts:26

Parameters

ParameterType
idstring

Returns

void