Blazor HubConnectionBuilder Timeouts
Does this work for anyone?
I can navigate away from the page for minutes and nothing happens. Connection is never closed...
1 Reply
All I want is for the server to time out, after X seconds of inactivity.
Only way I could find to resolve this was by setting in
Program.cs
And in the Hub
So, intentionally setting the KeepAliveInterval
to be longer than the ServerTimeout. If i don't specify the KeepAliveInterval
at all, then the server NEVER times out.
This does not seem right to me...