Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove connection from all groups in SignalR

How can I remove a specific connection from all groups in SignalR? - In my application the connection of a specific user can be associated with several groups. I don't want to use a database to track the association of the connection to groups.

SignalIR docs

like image 672
Idan Shechter Avatar asked May 22 '13 08:05

Idan Shechter


1 Answers

The simplest solution would be iterate over all the groups and remove the connection id from each of them. There isn't an inbuilt method in SignalR to do this.

like image 158
Abhishek Nanda Avatar answered Nov 11 '22 15:11

Abhishek Nanda