close

abstract fun close()

Closes the client connection and frees all its resources. The client should not be used anymore after this call. After this no more calls will be made to any listeners.