send method

void send(
  1. List<int>? data
)

Implementation

void send(List<int>? data) {
  if (data == null || data.isEmpty || isClosed()) {
    return;
  }
  try {
    _socket!.sink.add(data);
  } catch (err) {
    debug(data, '!!! $err');
  }
}