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

# closeAwait

`suspend fun WebSocket.closeAwait(): Unit`

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

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

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

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

### Parameters

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

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

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

### Parameters

`statusCode` -

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