[ACCEPTED]-SignalR: Is it necessary to remove the connection id from group OnDisconnect()?-signalr
Accepted answer
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.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.