|
| Type | Description | ||
| Message as IBeepMessage | Reference to BeepMessage object containing message data that arrived. |
MessageReceived notification is called by the transport interface when new message has arrived from other peer. Usually, wodBeep will accept this, parse it, pass to proper Profile that has registered the channel where message arrived, and finally give it to you - if you own the profile. For your own transport implementations: you should call this method when you want to notify your owner (wodBeep in most cases) that new message is arrived. You should create instance of IBeepMessage object, fill up propertiesthat you have lost connection with remote peer. ErrorCode and ErrorText should provide information on why disconnection occurred. In theory, wodBeep will NOT recreate this message. This means you can even create your own object that implements IBeepMessage interface, pass it through MessageReceived notification, and finally when it arrives to your profile you can cast it back to whatever object. Of course - this applies only if you created both the transport and the profile.
|