title: SignalR: Detecting Alive Connection in C# clients
body: <p>I am currently developing an application using SignalR (2.1) Hubs.</p>
  
  <p>I have 1 WPF client and the other is a WCF client.
  Everything works fine in that they are passing the messages perfectly.</p>
  
  <p>The only problem I faced now is that I noticed the OnDisconnected is not fired at all when the application shuts down for reasons such as auto-restarts, WCF server went down and a few others. The timeout is the default of 30 seconds. It is never called even after 1 day has passed (I tried). However, the timeout works for Web Clients.</p>
  
  <p>It only works when I call hub.connection.stop(). </p>
  
  <p>The Ondisconnected method however works very well when the client is a browser.</p>
  
  <p>Thus, I would like to ask whether there is any way for Signal R Hub side to be able to check whether the client is still connected or has already dropped out (such as a ping)?</p>