当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - In SignalR, is it possible to simulate a reconnect for testing?

问题描述:

I understand that SignalR continually attempts to reconnect if a connection fails for any reason. What's the best way to test my server and client's response to this?

网友答案:

To test disconnecting on the server: browse to another page.

To test disconnecting on the client: reset the server (IISreset?).

分享给朋友:
您可能感兴趣的文章:
随机阅读: