Class: SocketBroadcastHandler
Defined in: socket/broadcast.ts:14
A subclass of the SocketEventHandler that handles the broadcast events.
Extends
Constructors
Constructor
new SocketBroadcastHandler(
room,
eventName,
source,
payload): SocketBroadcastHandler;
Defined in: socket/index.ts:55
Parameters
| Parameter | Type | Description |
|---|---|---|
room | Room | The Room where the event is happening |
eventName | string | The name of the event |
source | User | The User associated with the event |
payload | IKeyValue | The input values of the event |
Returns
SocketBroadcastHandler
Inherited from
SocketEventHandler.constructor
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
eventName | protected | string | The event name of a socket event | SocketEventHandler.eventName | socket/index.ts:35 |
input | protected | IKeyValue | The input of the socket event | SocketEventHandler.input | socket/index.ts:41 |
output | protected | SocketIOContextOutput | The output of the socket event | SocketEventHandler.output | socket/index.ts:38 |
room | protected | Room | The room where the event is occurring | SocketEventHandler.room | socket/index.ts:44 |
source | protected | User | The user associated with the event | SocketEventHandler.source | socket/index.ts:47 |
Methods
passthru()
protected passthru(): Promise<void>;
Defined in: socket/index.ts:66
Event to Trigger a sendToRooms event.
Returns
Promise<void>
Inherited from
process()
protected process(): Promise<any>;
Defined in: socket/broadcast.ts:19
Broadcasts are pushed through
Returns
Promise<any>
original data, plus "source"
Overrides
result()
result(): Promise<SocketIOContextOutput>;
Defined in: socket/index.ts:86
The output produced from this.process
Returns
Promise<SocketIOContextOutput>