Skip to content

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 ParameterDefault type
Tany

Parameters ​

ParameterTypeDescription
eventDataTThe event data.

Returns ​

ResolvedRoom[]

Array of resolved rooms, or empty array if no rooms match.