SudoSOS Back-end API / service/websocket/event-registry / EventHandler
Interface: EventHandler<T> ​
Event handler configuration for a specific event type.
Type Parameters ​
| Type Parameter | Default type |
|---|---|
T | any |
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.