SudoSOS Back-end API / service/websocket/event-registry / RoomResolver
Type Alias: RoomResolver()<T> ​
ts
type RoomResolver<T> = (eventData) => ResolvedRoom[];Resolver function that extracts all potential room information from event data. Returns an array of all rooms that this event could potentially be emitted to. The guard will then filter which rooms actually receive the event.
Type Parameters ​
| Type Parameter | Default type |
|---|---|
T | any |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
eventData | T | The event data. |
Returns ​
Array of resolved rooms, or empty array if no rooms match.