TsgcWSPClient_E2EE › Events › OnError
Fired for transport-level errors on the underlying WebSocket connection.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
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.
procedure TForm1.oE2EEError(Connection: TsgcWSConnection; const Error: string);
begin
Log('E2EE transport error: ' + Error);
end;