vertx / io.vertx.kotlin.core.http / io.vertx.core.http.WebSocketBase / closeAwait

# closeAwait

`suspend fun WebSocketBase.closeAwait(): Unit`

Suspending version of method io.vertx.core.http.WebSocketBase.close

NOTE: This function has been automatically generated from io.vertx.core.http.WebSocketBase using Vert.x codegen.

`suspend fun WebSocketBase.closeAwait(statusCode: Short): Unit`

Suspending version of method io.vertx.core.http.WebSocketBase.close

### Parameters

`statusCode` - NOTE: This function has been automatically generated from io.vertx.core.http.WebSocketBase using Vert.x codegen.

`suspend fun WebSocketBase.closeAwait(statusCode: Short, reason: String): Unit`

Suspending version of method io.vertx.core.http.WebSocketBase.close

### Parameters

`statusCode` -

`reason` - NOTE: This function has been automatically generated from io.vertx.core.http.WebSocketBase using Vert.x codegen.