TsgcWebSocketClient › Methods › Stop
Disconnects from the server asynchronously from a secondary thread so the calling thread is not blocked.
public void Stop();
Stop spawns an internal worker thread that sets Active := False, so the caller returns immediately rather than waiting for the socket tear-down. The connection is not guaranteed to be closed when Stop returns; you must wait for the OnDisconnect event. The call is ignored when the component is being destroyed. Use Disconnect when you need a blocking call that waits for the disconnect to complete.
oClient.Stop();