MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Occurs when the client receives a custom message.
type TMsgOnReceiveStreamMessage = procedure (
const FromUserID: Cardinal;
const SendingDate,DeliveryDate: TDateTime;
) of object;
property OnReceiveStreamMessage: TMsgOnReceiveStreamMessage;
OnReceiveStreamMessage occurs when the client receives a custom stream message.
FromUserID is an identifier of the sender, i.e. UserID or ServerID.
SendingDate - date and time when command was sent.
DeliveryDate - date and time when command was delivered.
Stream - TStream descendant object with stream data.
You can send message to client using SendMessage method.