Expose the list of the connected client IDs
Closed this issue · 5 comments
leinardi commented
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
davidepianca98 commented
Done here 6dcc30c. Thanks for the suggestion
leinardi commented
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?
davidepianca98 commented
I think during the next week it could be feasible
davidepianca98 commented
New version released: 0.4.5.
leinardi commented
Awesome, thanks!