send method

void send(
  1. String data
)

Implementation

void send(String data) {
  logger.i('Send command \n' + data);
  try {
    _socket?.sink.add(data);
  } catch (e) {
    throw WebSocketError(message: e.toString());
  }
}