How to make SignalR behave gracefully in case of disconnection
问题 My application will often be used under fucked up corporate networks (proxy, firewalls, etc.) so I can not rely on sockets and long-polling is practically my only option. Here is my biggest problem with long-polling: Long-polling is disconnected at some point of time I automatically reconnect (accoring to documentation) User clicks something that causes hub method call but connection is not established yet - error happens. Is there any way to synchronize hub method call and reconnection like: