send method

void send(
  1. String message
)

Implementation

void send(String message) async {
  if (!_connected) {
    await connect();
  }
  if (_connected) {
    _channel!.sink.add(message);
  }
}