TsgcWSPClient_Files › Events › OnRawMessage
Fires with the untouched incoming text before the subprotocol parses it; set Handled to stop default processing.
property OnRawMessage: TsgcWSRawMessageEvent;
// TsgcWSRawMessageEvent = procedure(Connection: TsgcWSConnection; const Text: string; var Handled: Boolean) of object
—
Useful to intercept or log messages before they reach the protocol parser, or to implement custom framing on top of the same transport. When Handled is True the subprotocol skips its own dispatch and OnMessage/OnFile* are not raised.
procedure TForm1.oProtocolRawMessage(Connection: TsgcWSConnection;
const Text: string; var Handled: Boolean);
begin
Memo1.Lines.Add('raw: ' + Text);
end;