EventResolver<T extends WsEvent> typedef

EventResolver<T extends WsEvent> = T? Function(T event)

A function that inspects an event and optionally resolves it into a more specific or refined version of the same type.

If the resolver does not recognize or handle the event, it returns null, allowing other resolvers to attempt resolution.

Implementation

typedef EventResolver<T extends WsEvent> = T? Function(T event);