TsgcWSPClient_E2EEEvents › OnE2EEMessageBinary

OnE2EEMessageBinary Event

Fired when a decrypted direct binary message is received from another user.

Syntax

property OnE2EEMessageBinary: TsgcWSE2EEOnMessageBinary;
// TsgcWSE2EEOnMessageBinary = procedure(Sender: TObject; const aFrom: string; const aBytes: TBytes) of object

Default Value

Remarks

Fired for direct messages sent by a peer through the TStream or TBytes overloads of SendDirectMessage. aBytes is the fully decrypted payload as it was passed by the sender.

Example

procedure TForm1.oE2EEE2EEMessageBinary(Sender: TObject; const aFrom: string; const aBytes: TBytes);
begin
  Log(Format('%s sent %d bytes', [aFrom, Length(aBytes)]));
end;

Back to Events