Lab 36. Registering to all events

Lab 36. Registering to all events

Expected completion time of this lab: 

.

  • on your IBM Cloud-based Node-RED, instance, start a flow which subscribes to all events. 

  • make sure you see the messages appear in the debug tab

  • modify the flow by inserting a function node with the following code:

    var count = flow.get('count')||0; count += 1 flow.set('count',count); msg.payload = count; return msg;
  • What does the function above do?

  • How many messages are published per minute to the broker, on that topic?