src code

instance method Client#close

Client#close() → undefined

Closes the underlying socket connection from the server, if there is a connection, and calls the Client#onClose event when complete. If the connection is already closed, then this function does nothing, and the onClose event is not fired.