TsgcWSPClient_sgc › Events › OnRawMessage
Fires before the component parses a message; set Handled to True to suppress default processing.
property OnRawMessage: TsgcWSRawMessageEvent;
// TsgcWSRawMessageEvent = procedure(Connection: TsgcWSConnection; const Text: string; var Handled: Boolean) of object
—
Use this event to inspect or log the raw wire payload before the component decodes the sgc envelope. Setting Handled to True stops further processing, so OnMessage, OnEvent, OnRPCResult and other high-level events do not fire for this message.
procedure TForm1.oProtocolRawMessage(Connection: TsgcWSConnection;
const Text: string; var Handled: Boolean);
begin
Memo1.Lines.Add('raw: ' + Text);
Handled := False;
end;