Hi arixer,

Well we have implemented a event listener as a call back for receiving the payload for a particular topic, anywhere in the scope of your JavaScript code.

Lets say you have subscribed to a topic called “test”

In order to read the payload coming in the topic “test” here is the sample code




So basically you can read the payload in following way





Feel free to reach us in case of any other questions.

Open Source Team

Arcoiris Labs

Specialized in developing Intelligent Smartphone Applications

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store