send method

void send(
  1. Object message
)

Implementation

void send(Object message) {
  final connection = _connection;
  if (connection == null) throw StateError('WebSocket is not connected.');
  connection.send(message);
}