TsgcWSPServer_E2EEEvents › OnError

OnError Event

Fired when a protocol-level error is reported for a connection.

Syntax

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

Default Value

Remarks

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.

Example

procedure TfrmServerE2EE.WSPE2EEError(Connection: TsgcWSConnection; const Error: string);
begin
  MemoLog.Lines.Add('error: ' + Error);
end;

Back to Events