TsgcWSPClient_Presence › Events › OnConnect
Fires when the underlying WebSocket transport has connected to the server.
property OnConnect: TsgcWSConnectEvent;
// TsgcWSConnectEvent = procedure(Connection: TsgcWSConnection) of object
—
Fires after the WebSocket handshake has completed successfully. The Presence session is not yet established at this point; wait for OnSession before calling Subscribe, Publish or Invite on the channel-aware API.
procedure TForm1.oPresenceConnect(Connection: TsgcWSConnection);
begin
Memo1.Lines.Add('Connected: ' + Connection.Guid);
end;