vertx / io.vertx.rxjava.mqtt / MqttEndpoint / publishHandler

publishHandler

open fun publishHandler(handler: Handler<MqttPublishMessage>): MqttEndpoint

Set the publish handler on the MQTT endpoint. This handler is called when a PUBLISH message is received by the remote MQTT client

Parameters

handler - the handler

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