TsgcWSPServer_sgcProperties › Guid

Guid Property

Unique identifier used to route messages to a specific server-side protocol instance.

Syntax

property Guid: String read FGuid write FGuid;

Default Value

Remarks

Every subprotocol instance is identified by a Guid so peers can target messages at a specific protocol component. The Guid is prefixed internally to channel names so that several TsgcWSPServer_sgc components dropped on the same TsgcWebSocketServer keep their PubSub scopes isolated, and clients pass it as aGuid when they call Publish, Broadcast, RPC, Notify or WriteData.

Example

ShowMessage(oProtocol.Guid);

Back to Properties