vertx / io.vertx.kotlin.mqtt / io.vertx.mqtt.MqttClient / connectAwait

# connectAwait

`suspend fun MqttClient.connectAwait(port: Int, host: String): MqttConnAckMessage`

Suspending version of method io.vertx.mqtt.MqttClient.connect

### Parameters

`port` - port of the MQTT server

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

Return

MqttConnAckMessage

NOTE: This function has been automatically generated from io.vertx.mqtt.MqttClient using Vert.x codegen.

`suspend fun MqttClient.connectAwait(port: Int, host: String, serverName: String): MqttConnAckMessage`

Suspending version of method io.vertx.mqtt.MqttClient.connect

### Parameters

`port` - port of the MQTT server

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

`serverName` - the SNI server name

Return

MqttConnAckMessage

NOTE: This function has been automatically generated from io.vertx.mqtt.MqttClient using Vert.x codegen.