I understand that you commened broker.on('publish', function(){ ... }); to avoid multiple log message. However this is particularly useful to create a bridge for MQTT 3.1.1. Hence I recomend to uncoment this section.
As an alternative approach you can add an aditional ouput to the Aedes Broker node dedicated to the "publish". I mean two output to a single node. This will make the the node more flexible.
I understand that you commened broker.on('publish', function(){ ... }); to avoid multiple log message. However this is particularly useful to create a bridge for MQTT 3.1.1. Hence I recomend to uncoment this section.
As an alternative approach you can add an aditional ouput to the Aedes Broker node dedicated to the "publish". I mean two output to a single node. This will make the the node more flexible.