Method WebSocketClient():disconnect() Professional
Disconnect from a websocket server
:disconnect() --> self
This method returns the object executing the method.
The method :disconnect() disconnects from the server. After the client is disconnected from the server the method :onDisconnect() is executed.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.