vertx / io.vertx.reactivex.mqtt / MqttEndpoint / reject

reject

open fun reject(returnCode: MqttConnectReturnCode): MqttEndpoint

Sends the CONNACK message to the remote MQTT client rejecting the connection request with specified return code. See io.vertx.reactivex.mqtt.MqttEndpoint#accept for accepting connection

Parameters

returnCode - the connect return code

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