vertx / io.vertx.reactivex.mqtt / MqttClient / rxConnect

# rxConnect

`open fun rxConnect(port: Int, host: String): Single<MqttConnAckMessage>`

Connects to an MQTT server calling connectHandler after connection

### Parameters

`port` - port of the MQTT server

`host` - hostname/ip address of the MQTT server

Return

`open fun rxConnect(port: Int, host: String, serverName: String): Single<MqttConnAckMessage>`

Connects to an MQTT server calling connectHandler after connection

### Parameters

`port` - port of the MQTT server

`host` - hostname/ip address of the MQTT server

`serverName` - the SNI server name

Return