vertx / io.vertx.rxjava.mqtt / MqttEndpoint / pingHandler

pingHandler

open fun pingHandler(handler: Handler<Void>): MqttEndpoint

Set the pingreq handler on the MQTT endpoint. This handler is called when a PINGREQ message is received by the remote MQTT client. In any case the endpoint sends the PINGRESP internally after executing this handler.

Parameters

handler - the handler

Return
a reference to this, so the API can be used fluently