ServerEventHook typedef
ServerEventHook =
FutureOr<void> Function(ServerEvent event)
Receives ServerEvents. May be asynchronous; it is not awaited.
Implementation
typedef ServerEventHook = FutureOr<void> Function(ServerEvent event);