TsgcWSPServer_E2EE › Events › OnError
Fired when a protocol-level error is reported for a connection.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Triggered when a non-fatal error is detected while handling an E2EE client — for example a malformed subprotocol packet or a routing failure. The connection may remain open; use OnException for unhandled Delphi exceptions.
procedure TfrmServerE2EE.WSPE2EEError(Connection: TsgcWSConnection; const Error: string);
begin
MemoLog.Lines.Add('error: ' + Error);
end;