C#C
C#2y ago
Natty

Blazor HubConnectionBuilder Timeouts

Does this work for anyone?
        hubConnection = new HubConnectionBuilder()
            .WithUrl(Navigation.ToAbsoluteUri($"/chatroomhub"))
            .WithServerTimeout(TimeSpan.FromSeconds(30))
            .WithKeepAliveInterval(TimeSpan.FromSeconds(15))
            .Build();


I can navigate away from the page for minutes and nothing happens. Connection is never closed...
Was this page helpful?