Asp.Net Core SignalR on Blazor Server-Side never calls OnDisconnectedAsync #20932
Labels
area-blazor
Includes: Blazor, Razor Components
area-signalr
Includes: SignalR clients and servers
Blazor ♥ SignalR
This issue is related to the experience of Signal R and Blazor working together
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
Status: Resolved
Describe the bug
OnDisconnectedAsync is never called when using Asp.net Core SignalR with Blazor Server-Side
To Reproduce
https://github.com/francescocristallo/BlazorAppServerChat
Launch the app, open two tabs, the chat works.
When closing one of the browsers/tab, OnDisconnectedAsync is not called.
The same code calls OnDisconnectedAsync if used with Blazor Webassembly (Client Side)
Further technical details
ASP.NET Core 3.1 on Visual Studio Professional 2019
.NET Core SDK (reflecting any global.json):
Version: 3.1.200-preview-014883
Commit: 4e2a0ee959
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Host (useful for support):
Version: 3.1.1
Commit: a1388f194c
The text was updated successfully, but these errors were encountered: