Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Follow the instructions below to configure a gadget with pub-sub for inter-gadget communication:

...

  • publisher_channel_name -  this Publisher gadget the publishing channel is named as "publisher". Therefore, the data publishing takes place under the channel name "publisher". You can use the above code block in the respective event to publish data.
  • message - This refers to the publishing data that can be of any data type.

Step 2 - Configure a pub-sub link between the publisher and subscriber

...

The gadgets.HubSettings.onConnect() callback function is called when the connection between publisher and subscriber channel is established.

What's Next?

Info

If you wish to try out a sample on inter-gadget communication, see Sample 0 - Drill Down Dashboard.