Send Test Messages
We are now ready to send some test messages.
Open the application menu on the developer portal and select the Push icon like below:
Select the 'New Message' and input the following information:
- Set the receiver to 'User'.
- Select 'Login Name' in the pull-down menu and enter the target user's name (
user1). This is the user who was logging in when the initialization method
- Set up custom data as required. For example, set
mymessagefield as mentioned in the previous topic.
- Turn on the "MQTT".
- Click the "Confirm" button.
You should see the message on the browser right after you click the "Confirm" button.
Note that Kii Cloud only supports one MQTT connection per user. If multiple instances of a Web app are launched at the same time, only one connection can be established.
Some MQTT libraries repeatedly disconnect and reconnect a connection when multiple instances of a web app are launched at the same time. Implement logic to check the reconnection frequency and throw a connection error in the web app as required.
Let us move to the final topic: What's Next?
|<< Implement Receive Processing
|What's Next? >>