TsgcWSPClient_E2EEEvents › OnError

OnError Event

Fired for transport-level errors on the underlying WebSocket connection.

Syntax

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

Default Value

Remarks

Forwarded from the underlying TsgcWebSocketClient when it reports a transport or protocol-framing error. The Error argument contains the human-readable description. For E2EE-specific errors (bad key, decrypt failure, server-reported failure) use OnE2EEError instead.

Example

procedure TForm1.oE2EEError(Connection: TsgcWSConnection; const Error: string);
begin
  Log('E2EE transport error: ' + Error);
end;

Back to Events