TsgcWSPClient_Presence › Properties › Client
WebSocket client component used as transport for the Presence subprotocol.
property Client: TsgcWSComponent_WSClient read FClient write SetClient;
—
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).
oPresence := TsgcWSPClient_Presence.Create(nil);
oPresence.Client := sgcWebSocketClient1;
sgcWebSocketClient1.Active := True;