TsgcWSPClient_DatasetEvents › OnRawMessage

OnRawMessage Event

Fires before the component parses a message; set Handled to True to suppress default processing.

Syntax

property OnRawMessage: TsgcWSRawMessageEvent;
// TsgcWSRawMessageEvent = procedure(Connection: TsgcWSConnection; const Text: string; var Handled: Boolean) of object

Default Value

Remarks

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.

Example

procedure TForm1.oProtocolRawMessage(Connection: TsgcWSConnection;
  const Text: string; var Handled: Boolean);
begin
  Memo1.Lines.Add('raw: ' + Text);
  Handled := False;
end;

Back to Events