disconnected method

dynamic disconnected()

断开连接

Implementation

disconnected() {
  if (mqttClient != null) mqttClient!.disconnect();
}