title: SignalR client method does not invoke
body: <p>I am still learning SignalR. In asp.net web Api I have created a simple hub. And in angular I have created a factory for instantiating connection with the hub.</p>
  
  <pre><code> public class NotificationHub : Hub 
      {
          public void Hello()
          {
              var x = "test";
              Clients.All.hello(x);
          }
      }
  </code></pre>
  
  <p>Client side.</p>
  
  <pre><code>.factory("NotificationHub", function(){
          var NotificationHubFactory = {};
          NotificationHubFactory.proxy = null;
  
           var initialize = function(){
               $.connection.hub.url = "http://localhost:18678/signalr";
               $.connection.hub.start().done(function(response){
                  NotificationHubFactory.proxy  = $.connection.notificationHub;
               }).fail(function(error){
                   console.log(error);
               });
           };
  
           initialize();
  
  
          return  NotificationHubFactory;
      });
  </code></pre>
  
  <p>The problem is when I try to do this.</p>
  
  <pre><code>    NotificationHub.proxy.server.hello();
      NotificationHub.proxy.client.hello = function(data){
          console.log(data);
       };
  </code></pre>
  
  <p><code>NotificationHub.proxy.client.hello</code> never gets invoked. Although if I put a break point in the hub  <code>Clients.All.hello(x);</code> it fires which means it can not find <code>hello</code> method in the client.</p>
  
  <p>Any ideas what the problem is?</p>