davidepianca98/KMQTT

Expose the list of the connected client IDs

Closed this issue · 5 comments

It would be useful to have access to the list of connected clients of the broker. This would be very simple to implement: just create a function that returns the sessions.keys of the Broker class:

public fun getConnectedClients(): ListString = sessions.keys

Done here 6dcc30c. Thanks for the suggestion

Hey thanks that's awesome! This way I don't have to keep track manually but I can simply ask the broker for the connected devices!
Any ETA for the next release that will include this new feature?

I think during the next week it could be feasible

New version released: 0.4.5.

Awesome, thanks!