Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Subscriber list

Hi Romu,

You could do this quite easily by configuring the broker to do
subscribe and unsubscribe logging. You could write a client that
listens to $SYS/broker/log/M/subscribe and
$SYS/broker/log/M/unsubscribe and publishes the list to a topic as a
retained message.

In general I'm not sure about how wise this is though. If you've got a
fairly active server with clients connecting and disconnecting, then
the amount of bandwidth you'd be devoting to this task would be
considerable.With a naive implementation, if you had 10,000 clients
connected each with a 36 byte client id (e.g. UUID), then you would be
sending a 360kB message each time a client subscribed/unsubscribed.

Cheers,

Roger

On Fri, Oct 10, 2014 at 4:55 AM, Romu Hu <huruomu@xxxxxxxxx> wrote:
> Hi,
>
> Is it possible for mosquitto to provide subscriber list to client? For
> example, to get the subscriber list of a topic, the client subscribes to
> $SYS/broker/subscribers/[topic], the broker sends the list to the client.
>
> Any hint on how to implement this in mosquitto?
>
>
> Thanks
> Romu
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top