Update ChatHub.cs (#6)

Contributes to dotnet/AspNetCore.Docs  PR #26394
Removed all RemoveFromGroupAsync calls from within OnDisconnectedAsync.  There was only one.
pull/9/head
Wade Pickett 2022-07-15 13:23:10 -07:00 committed by GitHub
parent 6076598462
commit fe95a3ba48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -15,7 +15,6 @@ public class ChatHub : Hub
// <snippet_OnDisconnectedAsync>
public override async Task OnDisconnectedAsync(Exception? exception)
{
await Groups.RemoveFromGroupAsync(Context.ConnectionId, "SignalR Users");
await base.OnDisconnectedAsync(exception);
}
// </snippet_OnDisconnectedAsync>