最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Reconnection modal decrease delay to re-connect - Stack Overflow

programmeradmin3浏览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.

发布评论

评论列表(0)

  1. 暂无评论