onDone method

  1. @override
void onDone()
override

OnDone listener callback

Implementation

@override
void onDone() {
  _disconnect();
  if (onDisconnected != null) {
    MqttLogger.log(
        'MqttConnectionBase::_onDone - calling disconnected callback');
    onDisconnected!();
  }
}