Connection | Client AMQP Disconnect

The client can disconnect a current active connection, using the following methods:

 

Sending a Close Reason

The AMQP client can inform the server that the connection will be closed and provide information about the reason why is closing the connection. Use the method Close to request a connection close to the server.

 


oAMQP.Close(541, 'Internal Error');

Closing Socket Connection

Just set the property Active of TsgcWebSocketClient to False. You can read more about closing connections.