title: signalR client disconnection
body: <p>I am making a chat application using signalR and am wondering if I can capture disconnection on client side and then call a method on the hub?</p>
  
  <p>For example I want to do something like this:</p>
  
  <pre><code>var myHub = $.connection.myHub;
  $.connection.hub.start();
  
  myHub.disconnect(function () { myHub.server.someMethod(username) });
  </code></pre>
  
  <p>where myHub.disconnect is the event when a user disconnects?</p>
  
  <p>Thanks.</p>