vertx / io.vertx.kotlin.mqtt / io.vertx.mqtt.MqttClient / unsubscribeAwait

unsubscribeAwait

suspend fun MqttClient.unsubscribeAwait(topic: String): Int

Unsubscribe from receiving messages on given topic

Parameters

topic - Topic you want to unsubscribe from

unsubscribeSentHandler - handler called after UNSUBSCRIBE packet sent

Returncurrent
MQTT client instance *