MessageHandler<T extends UntypedMessage> typedef

MessageHandler<T extends UntypedMessage> = FutureOr<void> Function(T message)

Handler for messages sent by a Connection.

Implementation

typedef MessageHandler<T extends UntypedMessage<dynamic>> = FutureOr<void>
    Function(
  T message,
);