close

abstract override fun close()

Closes the connection to the chat backend and removes all listeners, even those the client forgot to unregister.

Further interaction with any handlers or methods other than events() or connect() in this class can lead to unspecified, untested and further unwanted behavior.