TsgcWSPServer_E2EEEvents › OnE2EEMessageOut

OnE2EEMessageOut Event

Fired just before an encrypted E2EE packet is relayed to a destination client.

Syntax

property OnE2EEMessageOut: TsgcWSE2EEOnServerMessageOut;
// TsgcWSE2EEOnServerMessageOut = procedure(Sender: TObject; const aText: string) of object

Default Value

Remarks

Triggered when the server is about to write a subprotocol packet to a destination connection — for example relaying a direct or group encrypted payload, broadcasting a newly received public key, or emitting an acknowledgment. Payload bodies stay encrypted; the server only routes. Useful for tracing outbound traffic.

Example

procedure TfrmServerE2EE.WSPE2EEE2EEMessageOut(Sender: TObject; const aText: string);
begin
  MemoLog.Lines.Add('--> ' + aText);
end;

Back to Events