mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

allow client to publish on many topics

Open velimir opened this issue 6 years ago • 2 comments

Hi,

Would you be interested in accepting the following feature? If so I would work on getting the tests done.

velimir avatar Nov 22 '19 14:11 velimir

Perhaps describe what the goal is here, and the behaviours that can't be managed with existing tooling?

karlp avatar Nov 22 '19 15:11 karlp

The goal here is to allow mosquitto_pub client to publish on multiple topics:

mosquitto_pub -m "hello world" -t client/updates/0 -t client/updates/1

The message is sent on the topics. Client cycles through the topics sending the provided message to the given topics one by one.

This is very handy for profiling a broker, where a client can publish on many topics within the same connection.

It can be done with existing tooling as there's no option at the moment to use multiple topics for the same connection.

velimir avatar Nov 23 '19 09:11 velimir

I don't believe this is the direction that mosquitto_pub should go in. It would be potentially confusing to its core purpose.

ralight avatar Nov 16 '23 23:11 ralight