title: SignalR, Clientside function not getting called
body: <p>I'm facing a strange issue, I'm able to call the server function but in return when  I try to call the client function , it does does not call
  Am I doing something wrong or missing out some code or configuration to be done</p>
  
  <p>I'm using Visual studio 2010 and developing a web app </p>
  
  <p>the Server code just a simple class</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Microsoft.AspNet.SignalR;
  
  namespace SignalRDemo
  {
      public class MyHub:Hub 
      {
          public void GetMessage(string msg)
          {
  
               Clients.All.getMsg1("Got :"+msg);
  
          }
  
      }
  }`
  </code></pre>
  
  <p>in global asax I have</p>
  
  <pre><code>protected void Application_Start(object sender, EventArgs e)
  {
      RouteTable.Routes.MapHubs();
  }
  </code></pre>
  
  <p>Client Side code I just click the btn , it calls the server function GetMessage as expected but in return it does not call getMsg1</p>
  
  <pre><code>$(document).ready(function () {
      debugger;
      var chat = $.connection.myHub;
      chat.getMsg1 = function (msg) {
          debugger;
          alert(msg);
      };
      $("#btn").click(function () {
          chat.server.getMessage("called");
      });
  
      $.connection.hub.start() 
  });
  </code></pre>
  
  <p>I googled I found that we need to register the client function before starting the hub conn which I did, but still it does not work nor it raises any error</p>