Azure / azure-signalr

Azure SignalR Service SDK for .NET
https://aka.ms/signalr-service
MIT License
427 stars 101 forks source link

Azure Signalr REST API - Get all users in a group #1466

Open harikrishna1902 opened 3 years ago

harikrishna1902 commented 3 years ago

Hello,

I am using the Azure Signalr Service with REST API in a Java application. My webpage needs to display the list of active users who are currently connected to a Hub (Similar to "Who is Online" in a Chat application). One way I can do this is to add the users to a group. However I do not see a service to list all the users in a group. There is an end point to check if a user is present in a group. But this will require looping through all users and making multiple API calls.

Is there already a service that is not documented but can give us the list of users in a group? If not is this something that can be added in future releases?

vwxyzh commented 3 years ago

No API to get all *(users/connections) in a group in service side. And there is no plan to support it.

If you are using serverless: Client can send application ping messages, and your function can refresh the online information in your database or Redis.