MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Occurs when the client receives a custom message.
type TMsgOnReceiveBinaryMessage = procedure (
const FromUserID: Cardinal;
const SendingDate,DeliveryDate: TDateTime;
) of object;
property OnReceiveBinaryMessage: TMsgOnReceiveBinaryMessage;
OnReceiveBinaryMessage occurs when the client receives a custom binary message.
FromUserID is an identifier of the sender, i.e. UserID or ServerID.
SendingDate - date and time when message was sent.
DeliveryDate - date and time when message was delivered.
Buffer is a binary data of the message.
Size is a length of the Buffer in bytes.
You can send message to client using SendMessage method.