vertx / io.vertx.reactivex.mqtt / MqttServer / endpointHandler

endpointHandler

open fun endpointHandler(handler: Handler<MqttEndpoint>): MqttServer

Set the endpoint handler for the server. If an MQTT client connect to the server a new MqttEndpoint instance will be created and passed to the handler

Parameters

handler - the endpoint handler

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