TsgcWSPServer_WebRTCProperties › Guid

Guid Property

Unique identifier that tags subscription channels owned by this WebRTC signalling handler.

Syntax

property Guid: String read FGuid write FGuid;

Default Value

Empty string (auto-assigned GUID generated on demand)

Remarks

Inherited from the subprotocol framework: every internal subscription is stored as Guid + '_' + Channel so several signalling handlers can coexist on the same TsgcWebSocketServer without their rooms colliding, and routed frames can be correlated back to the correct component instance. Leave it empty to let the library generate one; assign a stable value only when you need to survive restarts (persisted state, cluster membership, diagnostics logs). The Guid never appears on the wire as a peer identifier — the connection's own Connection.Guid is the one browsers see.

Example


WebRTCSrv := TsgcWSPServer_WebRTC.Create(nil);
WebRTCSrv.Guid := '{D8A6F4C2-5B19-47E1-9F8A-2C3D5E7F0B12}';
WebRTCSrv.Server := WSServer;

Back to Properties