Flushes buffer, if applicable.
@override Future flush() { if (_socket == null) return Future.value(); return _socket!.then((s) => s.flush()); }