【问题标题】:Asp.Net Core v3.1 & Angular8 Azure SignalR with withAutomaticReconnect 'Error: Server timeout elapsed without receiving a message from the server.'Asp.Net Core v3.1 和 Angular8 Azure SignalR withAutomaticReconnect '错误:服务器超时已过而未收到来自服务器的消息。'
【发布时间】:2020-09-05 06:43:55
【问题描述】:

我将 Asp.Net Core 3.1 和 Angular8 与 Azure SignalR 一起使用。它与 azure signalr 成功连接。但有时它会显示此消息。

【问题讨论】:

    标签: asp.net-core signalr azure-signalr


    【解决方案1】:

    当您的 SignalR 集线器超时某些操作并断开连接时会发生这种情况。 “withAutomaticReconnect”无法处理此问题,因为它仅在 Internet 网络切换而不是集线器/客户端错误等情况下重新连接。

    你可以做的是:

    因错误导致断开连接时由您自己处理。

    尝试为ClientTimeoutInterval 和KeepAliveInterval 设置更多时间。

    【讨论】:

    • ClientTimeoutInterval 和 KeepAliveInterval 是否有预估时间?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-05
    • 1970-01-01
    • 1970-01-01
    • 2021-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多