vertx / io.vertx.rxjava.mqtt / MqttClient / unsubscribe

# unsubscribe

`open fun unsubscribe(topic: String): MqttClient`

Unsubscribe from receiving messages on given topic

### Parameters

`topic` - Topic you want to unsubscribe from

Return
current MQTT client instance

`open fun unsubscribe(topic: String, unsubscribeSentHandler: Handler<AsyncResult<Int>>): MqttClient`

Unsubscribe from receiving messages on given topic

### Parameters

`topic` - Topic you want to unsubscribe from

`unsubscribeSentHandler` - handler called after UNSUBSCRIBE packet sent

Return
current MQTT client instance