Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Constructors
Constructor
new ServerChannel<Defined in: src/websocket/serverChannel.ts:15T>(category,canAccessChannel?):ServerChannel<T>
Parameters
| Parameter | Type |
|---|---|
category | string |
canAccessChannel? | canAccessChannel |
Returns
ServerChannel<T>
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
canAccessChannel | readonly | null | canAccessChannel | src/websocket/serverChannel.ts:13 |
category | readonly | string | src/websocket/serverChannel.ts:12 |
Methods
broadcast()
broadcast(Defined in: src/websocket/serverChannel.ts:20id,data):void
Parameters
| Parameter | Type |
|---|---|
id | string |
data | T |
Returns
void