title: SignalR javascript callback not working
body: <p>I have hub class:</p>
  
  <pre><code>public class ChatHub : Hub
  {
      // Send message
      public void Send(string message)
      {
          Clients.addMessage(DateTime.Now.ToString("HH:mm:ss") + " " + message);
      }
  }
  </code></pre>
  
  <p>And javascript:</p>
  
  <pre><code>// Proxy created on the fly
  var chat = $.connection.chatHub;
  
  // Declare a function on the chat hub so the server can invoke it
  chat.addMessage = function(message) {
      alert("message:" + message);
      $('#chat').append('&lt;div&gt;' + message + '&lt;/div&gt;');
  };
  
  
  $("#sendButton").click(function () {
  
      // Call the chat method on the server
      chat.send($('#message').val())
          .done(function () {
              console.log('Success!')
          })
          .fail(function (e) {
              console.warn(e);
          })
  });
  
  // Start the connection
  $.connection.hub.start();
  </code></pre>
  
  <p>All conection are fine:
  <img src="https://i.stack.imgur.com/59FyP.jpg" alt="enter image description here"></p>
  
  <p>If I use breakpoint in here <strong>Clients.addMessage(DateTime.Now.ToString("HH:mm:ss") + " " + message);</strong> everything is fine. </p>
  
  <p><strong>But i don't get callback on javascript function.</strong>
  <strong>alert("message:" + message);</strong> never executes</p>