close

suspend fun close(code: Short = 1000, reason: String = "")

closes the current open Session.

Throws

when something goes wrong