Azure / azure-signalr

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

Get all online users in a group #1706

Open avialonn opened 2 years ago

avialonn commented 2 years ago

Hi All, Im using the Azure Signalr service with .net 6. Im trying to understand how can I get all online users in a group? Is there an option to do so with the current SDK? Do I need to create my own logic to do so? If so, any input on this will be great! Regards, AL

vicancy commented 2 years ago

There is no such method provided in the current SDK. There is method inside our Management API to check if the user has any connections in the group (https://github.com/Azure/azure-signalr/blob/dev/docs/management-sdk-guide.md#features) but not getting the user list. You might need to create your own logic if you'd like the user list.

avialonn commented 2 years ago

Thanks for the reply! Any high level logic that you can suggest on? I know that the onconnected & ondisconnected are not definitive. Thanks!