How can I iterate through a SignalR group (hub class)
Groups.Add(Context.ConnectionId, "foo");
How would I iterate through the group to see whose in it? and then possibly based on the connectionId in there return a user
How can I iterate through a SignalR group (hub class)
Groups.Add(Context.ConnectionId, "foo");
How would I iterate through the group to see whose in it? and then possibly based on the connectionId in there return a user
Possibly implement a Dictionary when the clients conn/dis/re-connect
You can expand this to include there name or group etc , but like akoeplinger say's you have to keep track of this throughout your app.
From the SignalR docs:
So no, you can't iterate over the users in a group, you need to keep track of that yourself.