MessageParser<T> typedef

MessageParser<T> = T Function(dynamic raw)

Decodes a raw WebSocket frame (String or List<int>) into a typed message of type T.

Implementation

typedef MessageParser<T> = T Function(dynamic raw);