send method

  1. @override
void send(
  1. List<int> data
)
inherited

Sends a command (encoded as a list of bytes) to the server.

Implementation

@override
void send(List<int> data) {
  try {
    _socket?.add(data);
  } catch (e) {
    onError?.call(e);
    _handleDisconnect();
  }
}