send method

dynamic send(
  1. dynamic data
)

Implementation

send(data) {
  if (_socket.readyState == WebSocket.OPEN) {
    _socket.send(data);
    _logger.i('TxSocket :: send : \n\n$data');
  } else {
    _logger.i('WebSocket not connected, message $data not sent');
  }
}