clientDisconnect method

  1. @override
void clientDisconnect()
override

A disconnection issued by the client.

Implementation

@override
void clientDisconnect() {
  final error = SatelliteException(
    SatelliteErrorCode.connectionCancelledByDisconnect,
    "Connection cancelled by 'disconnect'",
  );
  disconnect(error);
  cancelConnectionWaiter(error);
}