[ACCEPTED]-SignalR: Is it necessary to remove the connection id from group OnDisconnect()?-signalr

Accepted answer
Score: 54

According to the statement here, you don't need to remove 11 connections from groups:

You should not manually 10 remove the user from the group when the 9 user disconnects. This action is automatically 8 performed by the SignalR framework.

When 7 a connection subscribes to a topic (which 6 happens when you add the connection to a 5 group), it receives a disposable which will 4 remove the subscription when disposed (which 3 means the connection isn't in the group 2 anymore). This is triggered when a connection 1 disconnects and is removed.

More Related questions