The setAddress() method is a method of the Message interface. The general syntax of this method is as follows:
Here, the address parameter defines the destination address for the message. The address should use the same URL string as the Connector.open() uses to obtain the MessageConnection instance.
The syntax below creates the instance of the MessageConnection:
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
