Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Constructors
Constructor
new ClientChannel<Defined in: src/websocket/clientChannel.ts:7T>(category,onMessage):ClientChannel<T>
Parameters
| Parameter | Type |
|---|---|
category | string |
onMessage | (data) => void |
Returns
ClientChannel<T>
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
category | readonly | string | src/websocket/clientChannel.ts:4 |
Methods
init()
init(): void
Defined in: src/websocket/clientChannel.ts:12
Returns
void
joinChannel()
joinChannel(Defined in: src/websocket/clientChannel.ts:19id):void
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void
leaveChannel()
leaveChannel(Defined in: src/websocket/clientChannel.ts:26id):void
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void