TsgcWSPClient_STOMP_RabbitMQProperties › Guid

Guid Property

Unique identifier that binds this STOMP RabbitMQ subprotocol instance to its WebSocket or broker connection.

Syntax

property Guid: String read FGuid write FGuid;

Default Value

Auto-generated on component creation

Remarks

The Guid is assigned automatically in the constructor and is used internally to route frames between the TsgcWebSocketClient (or TsgcWSSTOMPBroker) and the matching STOMP subprotocol instance. It is not the STOMP session identifier: the broker returns that value inside the CONNECTED frame and it is delivered to the application through the Session parameter of OnRabbitMQConnected. Do not modify Guid unless you are explicitly re-parenting the protocol component between connections.

Example


oRabbit := TsgcWSPClient_STOMP_RabbitMQ.Create(nil);
ShowMessage('Protocol Guid: ' + oRabbit.Guid);

Back to Properties