TsgcWSPServer_E2EEEvents › OnMessage

OnMessage Event

Fired when a text WebSocket message is received on this subprotocol channel.

Syntax

property OnMessage: TsgcWSMessageEvent;
// TsgcWSMessageEvent = procedure(Connection: TsgcWSConnection; const Text: string) of object

Default Value

Remarks

Generic WebSocket-level message event. E2EE payloads are opaque ciphertext here — use OnE2EEMessageIn to trace subprotocol packets instead.

Example

procedure TfrmServerE2EE.WSPE2EEMessage(Connection: TsgcWSConnection; const Text: string);
begin
  MemoLog.Lines.Add('message: ' + Text);
end;

Back to Events