TsgcWSPClient_PresenceProperties › Client

Client Property

WebSocket client component used as transport for the Presence subprotocol.

Syntax

property Client: TsgcWSComponent_WSClient read FClient write SetClient;

Default Value

Remarks

Drop a TsgcWebSocketClient on the form and assign it to this property so the Presence component can send and receive frames through it. The Presence layer adds the member, channel, publish and invitation envelope on top of the existing WebSocket connection; open the connection on the Client itself (Active := True).

Example

oPresence := TsgcWSPClient_Presence.Create(nil);
oPresence.Client := sgcWebSocketClient1;
sgcWebSocketClient1.Active := True;

Back to Properties