Hi all - while looking into & experimenting with MQTT V5 for node-red and testing its features etc, I found an odd scenario. At first I thought this was an MQTT V5 issue or mqtt.js v4.2.1 issue as I had never noticed this before so I loaded up a FRED instance (V1.0.5) - same issue.
Is this expected behaviour?
This is the problem...
Working as expected...
Events are duplicated when adding a matching wildcard subscribe...
Events are tripled when adding a 2nd matching wildcard subscribe...
[{"id":"e67eb652.9b5988","type":"mqtt in","z":"4b3f21a3.ba434","name":"","topic":"people/admins/ted","qos":"2","datatype":"auto","broker":"8d054ea0.7a496","x":570,"y":660,"wires":[["6ff77ce4.6159b4"]]},{"id":"6ff77ce4.6159b4","type":"debug","z":"4b3f21a3.ba434","name":"people/admins/ted","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":770,"y":660,"wires":[]},{"id":"72dbd096.5a21f","type":"inject","z":"4b3f21a3.ba434","name":"people/admins/ted","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"people/admins/ted","payload":"","payloadType":"date","x":590,"y":600,"wires":[["cb8cb1ad.7499f"]]},{"id":"cb8cb1ad.7499f","type":"mqtt out","z":"4b3f21a3.ba434","name":"","topic":"","qos":"1","retain":"","broker":"8d054ea0.7a496","x":750,"y":600,"wires":[]},{"id":"5411b0cc.13eb9","type":"mqtt in","z":"4b3f21a3.ba434","name":"","topic":"people/admins/#","qos":"2","datatype":"auto","broker":"8d054ea0.7a496","x":560,"y":720,"wires":[["1974c28a.c6725d"]]},{"id":"1974c28a.c6725d","type":"debug","z":"4b3f21a3.ba434","name":"people/admins/#","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":760,"y":720,"wires":[]},{"id":"49d515f8.2abf7c","type":"mqtt in","z":"4b3f21a3.ba434","name":"","topic":"people/#","qos":"2","datatype":"auto","broker":"8d054ea0.7a496","x":539,"y":780,"wires":[["33c40b7a.1a7c24"]]},{"id":"33c40b7a.1a7c24","type":"debug","z":"4b3f21a3.ba434","name":"people/#","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":740,"y":780,"wires":[]},{"id":"8d054ea0.7a496","type":"mqtt-broker","z":"","name":"","broker":"broker.emqx.io","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"45","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
I would appreciate it if a few people with different versions could test this (let me know your results and node-red version etc)