Future<void> send(Object? data) { _bufferData(data); if (_transportResult == null) { _transportResult = Completer(); } return _transportResult!.future; }