Back to product page

SendMessage method


Sends message to some JID.

Syntax

  • Basic
object.SendMessage (JID, Message)
The SendMessage(object,JID,Message) syntax has these parts:
objectAn expression evaluating to an object of type wodXMPP
JIDA String value. Determines which JID will message be sent to.
MessageA XMPPMessage object. A reference to wodXMPPMessage object which will be sent.

Remarks

Sends message (through XMPPMessage object) to the user specified by JID parameter. Message parameter in this case isn't a String value containing the text you wish to send, but a reference to XMPPMessage object.

If you wish wodXMPP to create XMPPMessage object automatically, you should use SendText method.

Platforms

Windows