WebSocketMessage

WebSocketMessage = ({List<int>? bytes, String? text})

WebSocket message data container.

Messages from the WebSocket can be either string or binary data. Use text for text messages or bytes for binary data.

Implementation

typedef WebSocketMessage = ({
  /// The raw string content (if the message is text)
  String? text,

/// The raw bytes (if the message is binary) List<int>? bytes, });