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
parent
6076598462
commit
fe95a3ba48
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue