vertx / io.vertx.rxjava.mqtt / MqttEndpoint / accept

accept

open fun accept(sessionPresent: Boolean): MqttEndpoint

Sends the CONNACK message to the remote MQTT client with "connection accepted" return code. See io.vertx.rxjava.mqtt.MqttEndpoint#reject for refusing connection

Parameters

sessionPresent - if a previous session is present

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