SignalR: Is it necessary to remove the connection id from group OnDisconnect()?

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

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

When a connection subscribes to a topic (which happens when you add the connection to a group), it receives a disposable which will remove the subscription when disposed (which means the connection isn’t in the group anymore). This is triggered when a connection disconnects and is removed.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)