close

fun close(message: String? = null)(source)

Close this client, removing all the services and stopping accepting messages.