The client can disconnect a current active connection, using the following methods:
The AMQP client can inform the server that the connection will be closed and provide information about the reason why it is closing the connection. Use the method Close to request a connection close to the server.
oAMQP.Close(541, 'Internal Error');
Just set the property Active of TsgcWebSocketClient to False. You can read more about closing connections.