Liron Harel
Liron Harel

Reputation: 11247

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

Upvotes: 6

Views: 3803

Answers (1)

Abhishek Nanda
Abhishek Nanda

Reputation: 1007

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.

Upvotes: 3

Related Questions