Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

.NET 9.0 reconnection modal decrease delay to re-connect

$
0
0

We have been blessed with the new reconnection dialog which auto-refreshes the page when the connection is lost (nice). However, I am encountering a slight problem where if you leave the page for a split second (on mobile), when you re-enter the page, it shows the dialog reconnecting for like 5-10 seconds before it reconnects.

I am wondering if there is a work around for this, ideally it would reconnect as soon as the tab is re-entered so the dialog is remove quickly, improving the users experience.

If anyone has any suggestions, let me know!

I've tried creating a custom boot.js which doesn't seem to do anything.

I've also tried adding:

<script>    Blazor.start({          circuit: {            reconnectionOptions: {              retryIntervalMilliseconds:                Array.prototype.at.bind([0, 100, 500, 1000, 1000, 2000, 2000, 2000]),            },          },        });</script>

which also doesn't seem to do anything.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>