❔ Blazor Server + Custom SignalR hub
Hello,
I use a hub for receiving messages from the server at specific moments. When I close my tab or leave the website, the OnDisconnected method is NEVER called in the Hub. The DisposeAsync method in the blazor component is also never called. I also tried to reduce keepalives/timeouts etc. but it does never trigger.
Is it an actual known issue? Am I doing something wrong?
I followed this for setting up everything: https://learn.microsoft.com/en-us/aspnet/core/blazor/tutorials/signalr-blazor?view=aspnetcore-7.0&tabs=visual-studio&pivots=server
edit: setting the timeouts on the hubconnection seems to have effects... what are the default values?
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.