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

# closeAwait

`suspend fun ServerWebSocket.closeAwait(): Unit`

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

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

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

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

### Parameters

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

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

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

### Parameters

`statusCode` -

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