title: Cannot read property 'chatHub' of undefined SignalR Hub
body: <p>i'm try to learn signalr and this error i'm founded it.</p>
  
  <p>Cannot read property 'chatHub' of undefined.</p>
  
  <pre><code>$(document).ready(function () {
          var chat = $.connection.chatHub;
          $.connection.hub.start();
   });
  </code></pre>
  
  <p>and hub file is:</p>
  
  <pre><code>namespace TestSignalR.Web.Hubs
  {
  public class ChatHub : Microsoft.AspNet.SignalR.Hub
  {
      public void Send(string msg)
      {
          ChatData chat = new ChatData();
          chat.Msg = msg;
          chat.UserName = HttpContext.Current.User.Identity.Name;
          chat.Date = "♣ at " + DateTime.Now.ToString("hh:mm tt");
          Clients.All.broadCastMessage(chat);
      }
  }
  }
  </code></pre>