TsgcWSPClient_PresenceEvents › OnError

OnError Event

Fires when the transport reports a protocol-level error string.

Syntax

property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object

Default Value

Remarks

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.

Example

procedure TForm1.oPresenceError(Connection: TsgcWSConnection; const Error: string);
begin
  Memo1.Lines.Add('Error: ' + Error);
end;

Back to Events