简体   繁体   中英

Proper settings for Keeping SignalR connection Alive

I have a page using signalR, and its also using flash/html5 on it. After a certain amount of time the user seems to go "idle" and get disconnected, or the connection isn't alive anymore because I cant receive messages. If I wanted to keep the connection alive as long as the browser is open, what would be the proper configuration. My configuration right now for keeping it alive is as follows:

GlobalHost.Configuration.KeepAlive = TimeSpan.FromSeconds(60);

Using SignalR 0.5.3

如果您更新到 1.0Alpha,这会在 99% 的情况下为您处理。(通过https://github.com/SignalR/SignalR/issues/469 )。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM