In SignalR, the implementation of ITransportHeartbeat.GetConnections() should get a list of monitored connections. In one of my cases, I always got a connection to a web socket that was no longer there.
This is how I retrieve the default instance of ITransportHeartbeat :
SignalRAutofac.Initialize(); IDependencyResolver resolver = GlobalHost.DependencyResolver; ITransportHeartbeat heartbeat = resolver.Resolve<ITransportHeartbeat>();
I assume that SignalR sends a heartbeat to the monitored connection at a specific interval. This is true? If so, I did not see that the dead connection was removed from the list for 5 minutes. Is this a common thing? What dead connection should live throughout the life of AppDomain?
source share