Discuss this help topic in SecureBlackbox Forum
WebSocket: Create connection with server
To close a WebSocket connection you need to call Close() method of TElWebSocketClient or TElWebSocketServer. The method optionally (if Silent parameter is false) sends a shutdown message on WebSocket protocol level, then closes TLS channel and finally closes the WebSocket. If Silent parameter is set to true, the connection is closed without sending a "Close Description" (finalization text message).