TsgcWSPClient_PresenceProperties › Presence

Presence Property

Local member identity (name and arbitrary info) published to the server on join.

Syntax

property Presence: TsgcWSPresenceMember_Options read FPresence write SetPresence;

Default Value

Remarks

Set the public identity of the local member before connecting. Name is a human-readable label and Info is a TStringList of arbitrary key/value or free text that other members receive through OnNewMember and OnGetMembers. These values are attached to every subscribe, invite and publish message sent by this client.

Example

oPresence.Presence.Name := 'Alice';
oPresence.Presence.Info.Values['role'] := 'admin';

Back to Properties