title: SignalR Hub not connecting
body: <p>I'm trying to create a SignalR application but I cannot connect to my hub.</p>
  
  <p>Here is my following code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;SignalR Simple Chat&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button id="display"&gt;Display&lt;/button&gt;
      &lt;button id="send"&gt;Send&lt;/button&gt;
      &lt;input id="Name" type="Text"&gt;
      &lt;input id="Content" type="Text"&gt;
      &lt;!--Script references. --&gt;
      &lt;!--Reference the jQuery library. --&gt;
      &lt;script src="Scripts/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
      &lt;!--Reference the SignalR library. --&gt;
      &lt;script src="/Scripts/jquery.signalR-2.0.0.js"&gt;&lt;/script&gt;
      &lt;!--Reference the autogenerated SignalR hub script. --&gt;
      &lt;script src="/signalr/hubs"&gt;&lt;/script&gt;
      &lt;!--Add script to update the page and send messages.--&gt;
      &lt;script type="text/javascript"&gt;
  
  
          $(function () {
              messageArr = [];
  
              var chat = $.connection.chatHub;
              chat.client.broadcastMessage = function (id, name, content) {
                  var message = { ID: id, Name: name, Content: content };
                  messageArr.push(message);
              };
  
              $('#display').click(function() {
                  window.alert(messageArr);
              });
  
              $.connection.hub.start().done(function () {
                  $('#send').click(function () {
                      window.alert("Sent");
                      chat.server.send(0, document.getElementById("Name").value, document.getElementById("Content"));
  
                  });
              });
          });
  
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>C# Hub:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Microsoft.AspNet.SignalR;
  
  namespace WebAPI
  {
      public class ChatHub : Hub
      {
          public void Send(int id, String name, String content)
          {
              Clients.All.broadcastMessage(id, name, content);
          }
      }
  }
  </code></pre>
  
  <p>Owin Startup Class:</p>
  
  <pre><code>using System;
  using System.Threading.Tasks;
  using Microsoft.Owin;
  using Owin;
  
  [assembly: OwinStartup(typeof(WebAPI.Startup))]
  
  namespace WebAPI
  {
      public class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              // Any connection or hub wire up and configuration should go here
              app.MapSignalR();
           }
       }
  }
  </code></pre>
  
  <p>When I run this through Visual Studio 2013, I click the send button and no alert comes up telling me I've pressed the button. Also, when I click the display button later, the messageArr array is still empty. What can I change to make this actually work?</p>