close

suspend fun close(cause: Throwable?): Unit

Overrides WebSocketSession.close

Close session with the specified cause or with no reason if null