title: SignalR OnConnected and OnDisconnected not firing
body: <p>I'm having trouble with OnConnected and OnDisconnected overrides in my Hub not firing.</p>
  
  <p>For replication purposes, I've got a very simple Hub:</p>
  
  <pre><code>public class OnlineHub : Hub
  {
      public void TestMethod()
      {
          var a = 1;
      }
  
      public override System.Threading.Tasks.Task OnConnected()
      {
          return Clients.All.connected(Context.ConnectionId, DateTime.Now.ToString());
      }
  
      public override System.Threading.Tasks.Task OnDisconnected()
      {
          return Clients.All.disconnected(Context.ConnectionId, DateTime.Now.ToString());
      }
  }
  </code></pre>
  
  <p>And an aspx page:</p>
  
  
      
          
      
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $("#btn").click(function () {
              $.connection.onlineHub.server.testMethod();
          });
  
          $.connection.onlineHub.server.connected = function (id, date) {
              $("#results").append("connected: " + id + " : " + date + "&lt;/br&gt;");
          };
  
          $.connection.onlineHub.server.disconnected = function (id, date) {
              $("#results").append(("connected: " + id + " : " + date + "&lt;/br&gt;");
          };
  
          $.connection.onlineHub.connection.start();
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm using jQuery 1.6.4 and signalR 1.0.0-alpha2.  The client side connected and disconnected methods are not being executed. And if I put a breakpoint in OnConnected or OnDisconnected, the breakpoints don't hit.</p>
  
  <p>The connection is being made as my TestMethod calls ok and I'm getting a connectionId back from signalR's negotiate call.</p>
  
  <p>I'm sure I'm missing something simple.</p>
  
  <p>Thanks in advance.</p>