TsgcWSPClient_Files › Events › OnError
Fires for transport-level errors reported by the underlying sgcWebSocket client.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Use this event to surface protocol errors (malformed frames, rejected messages) to the UI or log. File-specific failures are also routed through OnFileReceivedError and OnFileSentError with extra context.
procedure TForm1.oProtocolError(Connection: TsgcWSConnection; const Error: string);
begin
Memo1.Lines.Add('error: ' + Error);
end;