client constantly reconnecting

后端 未结 2 1845
逝去的感伤
逝去的感伤 2020-12-17 04:35

My .net application which connects to signalr hub is constantly reconnecting.

This problem only occurs on certain other corporate networks which makes me believe so

2条回答
  •  半阙折子戏
    2020-12-17 05:02

    For your server, in your web.config's system.diagnostics section add:

    
      
    
    

    For your client (I'm assuming .net C#), its logging is via Debug.Writes. Also, I'd recommend hooking into the Error handler for your connection.

    If your using a JS client you can turn logging on via

    // Non dynamically made connection
    connection.logging = true;
    // Dynamically made connection
    $.connection.hub.logging = true
    

    Hope this helps!

提交回复
热议问题