TsgcWSPClient_Dataset › Events › OnSession
Fires after a successful connection or GetSession request with the assigned session Guid.
property OnSession: TsgcWSSessionEvent;
// TsgcWSSessionEvent = procedure(Connection: TsgcWSConnection; Guid: string) of object
—
Guid is the session identifier assigned by the server. Store it if you need to reconnect to the same session later, or to pass it as aGuid on Publish, Broadcast, RPC or WriteData calls.
procedure TForm1.oProtocolSession(Connection: TsgcWSConnection; Guid: string);
begin
FSessionId := Guid;
end;