From fe95a3ba48b2c8fca9ac75bd15fa77b6fad4c814 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Fri, 15 Jul 2022 13:23:10 -0700 Subject: [PATCH] Update ChatHub.cs (#6) Contributes to dotnet/AspNetCore.Docs PR #26394 Removed all RemoveFromGroupAsync calls from within OnDisconnectedAsync. There was only one. --- .../hubs/samples/6.x/SignalRHubsSample/Snippets/Hubs/ChatHub.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/signalr/hubs/samples/6.x/SignalRHubsSample/Snippets/Hubs/ChatHub.cs b/signalr/hubs/samples/6.x/SignalRHubsSample/Snippets/Hubs/ChatHub.cs index 92dedb9..d9126d9 100644 --- a/signalr/hubs/samples/6.x/SignalRHubsSample/Snippets/Hubs/ChatHub.cs +++ b/signalr/hubs/samples/6.x/SignalRHubsSample/Snippets/Hubs/ChatHub.cs @@ -15,7 +15,6 @@ public class ChatHub : Hub // public override async Task OnDisconnectedAsync(Exception? exception) { - await Groups.RemoveFromGroupAsync(Context.ConnectionId, "SignalR Users"); await base.OnDisconnectedAsync(exception); } //