TsgcWSPClient_Presence › Events › OnError
Fires when the transport reports a protocol-level error string.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Fires whenever the WebSocket layer below the Presence protocol surfaces an error, typically transport or TLS problems. Channel-level errors reported by the Presence server arrive through OnErrorMemberChannel or OnErrorPublishMsg instead.
procedure TForm1.oPresenceError(Connection: TsgcWSConnection; const Error: string);
begin
Memo1.Lines.Add('Error: ' + Error);
end;