TsgcWSPClient_E2EE › Events › OnE2EEMessageBinary
Fired when a decrypted direct binary message is received from another user.
property OnE2EEMessageBinary: TsgcWSE2EEOnMessageBinary;
// TsgcWSE2EEOnMessageBinary = procedure(Sender: TObject; const aFrom: string; const aBytes: TBytes) of object
—
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.
procedure TForm1.oE2EEE2EEMessageBinary(Sender: TObject; const aFrom: string; const aBytes: TBytes);
begin
Log(Format('%s sent %d bytes', [aFrom, Length(aBytes)]));
end;