MQTTX icon indicating copy to clipboard operation
MQTTX copied to clipboard

[Feature] Topic browser

Open daenney opened this issue 3 years ago • 5 comments

Motivation

When connecting to a broker for exploration purposes you don't always know what topics are available. It would be nice if there was a topic browser, that showed all topics on the broker.

Detailed design

MQTT Explorer provides this feature. It seems to do this by subscribing to # and then continuously updating a tree view.

This would relate partially to #533.

More details

I realise it's not really possible to always show all topics. Even by subscribing to # the client would only become aware of topics that have messages published to them but that's already a lot more helpful than nothing at all.

daenney avatar Mar 13 '21 17:03 daenney

@daenney thanks for your suggestion, it's a great idea that topics show like a tree view when we sub # just in MQTT X. BTW, we developed another product named EMQX dashboard which clearly shows the sub/pub topic in the broker if your MQTT broker is EMQX.

oceanlvr avatar Mar 14 '21 09:03 oceanlvr

MQTT Explorer sub the # and $SYS/# automatically:

image

and show as a tree view like (when the # and $SYS topic available )

image

@ysfscream what's your opinion? Displaying all the topics exist/available in broker when the MQTT broker allows user to sub # topic, or just keep sub list clean, and suggest they use EMQX dashboard?

oceanlvr avatar Mar 14 '21 09:03 oceanlvr

I had completely forgotten about the dashboard, that’s a great point. It would be nice to have a similar capability even if the broker isn’t emqx.

daenney avatar Mar 14 '21 16:03 daenney

@daenney Hi! Thanks for your great suggestions and @oceanlvr thanks for your reply.

In fact, this functional design is there from the beginning, but I don't think it should be a default main feature, perhaps an extended feature is better and optional. We will consider implementing it later, but there is no actual idea. Maybe we can do more and discuss here.

ysfscream avatar Mar 15 '21 02:03 ysfscream

I'll add that this is pretty much a deal breaker feature for me. Right now, there's no way to organize any of the messages, they just get dumped in one big giant list. I'm subscribing to a stream of events across maybe 20 topics, so I really need a way to organize them. I recognize tree views are hard to build - an easier, although not as good feature would be:

  • Make clicking the topic toggle showing messages from that topic in the main list, so that you could hide message from certain topics, as a way to filter.
  • Include a message count in the topic name instead of QoS. QoS isn't really important to view, and seeing the number of messages for a topic would be more useful.

distinctdan avatar Oct 10 '23 15:10 distinctdan