send method

Future send ()

Sends this batch to the server.

Implementation

Future send() {
  if (_packets.isNotEmpty) {
    var packet = _packets.join("\n");
    _packets.clear();
    return _connection.send(packet);
  } else {
    return new Future.value();
  }
}