user1919071
user1919071

Reputation: 93

Iterate through SignalR clients

I'm pretty new to SignalR. I tried to look for a solution but with no success. Is there a way to iterate through the Clients in SignalR? That is, I need to check each client state and decide what to do according to it.

Thanks

Upvotes: 0

Views: 933

Answers (1)

Alaeddin Hussein
Alaeddin Hussein

Reputation: 756

I'm not sure if there is an easier way. But the way I implemented it is by creating a static list and each time a user connects I add them to that list. And remove the user on disconnect.

Upvotes: 2

Related Questions