Skip to content

SudoSOS Back-end API / service/websocket/event-registry / EventHandler

Interface: EventHandler<T> ​

Event handler configuration for a specific event type.

Type Parameters ​

Type ParameterDefault type
Tany

Properties ​

guard ​

ts
guard: EventGuard<T>;

Guard function that filters which rooms should actually receive the event. Only called for rooms returned by the resolver.


resolver ​

ts
resolver: RoomResolver<T>;

Resolver function that extracts all potential rooms from event data. Should return all possible rooms that could receive this event.