vertx / io.vertx.kotlin.ext.stomp / io.vertx.ext.stomp.StompClient / connectAwait

# connectAwait

`suspend fun StompClient.connectAwait(port: Int, host: String): StompClientConnection`

Connects to the server.

### Parameters

`port` - the server port

`host` - the server host

Return
the current io.vertx.ext.stomp.StompClient *

`suspend fun StompClient.connectAwait(net: NetClient): StompClientConnection`

Connects to the server.

### Parameters

`net` - the NET client to use

Return
the current io.vertx.ext.stomp.StompClient *

`suspend fun StompClient.connectAwait(port: Int, host: String, net: NetClient): StompClientConnection`

Connects to the server.

### Parameters

`port` - the server port

`host` - the server host

`net` - the NET client to use

Return
the current io.vertx.ext.stomp.StompClient *

`suspend fun StompClient.connectAwait(): StompClientConnection`

Connects to the server using the host and port configured in the client's options.

Return
the current io.vertx.ext.stomp.StompClient *