RealtimeDecode typedef

RealtimeDecode = Future<RealtimeMessage> Function(Object frame)

Deserializes a raw incoming WebSocket frame (String or binary) into a message.

The deserialization can run on a background isolate: messages are dispatched to the channels in the order the frames were received, even when a later decode completes first.

Implementation

typedef RealtimeDecode = Future<RealtimeMessage> Function(Object frame);