vertx / io.vertx.reactivex.mqtt / MqttClient / disconnect

disconnect

open fun disconnect(): MqttClient

Disconnects from the MQTT server

Return
current MQTT client instance

open fun disconnect(disconnectHandler: Handler<AsyncResult<Void>>): MqttClient

Disconnects from the MQTT server calling disconnectHandler after disconnection

Parameters

disconnectHandler - handler called when asynchronous disconnect call ends

Return
current MQTT client instance