TsgcWSPClient_Dataset › 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 Dataset envelope. Setting Handled to True stops further processing, so OnMessage, OnEvent, OnRPCResult and the Dataset new/update/delete 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;