title: SignalR Client method bound before hub.start(), but not being called after Server Method
body: <p>I can set a breakpoint at my server method and it is being called on hub start. And if i put a breakpoint at hub.start(), I do see that the connection already has the client side version of the method bound. But somehow the method is not being called from server. Here is my code:</p>
  
  <p><strong>Server method</strong></p>
  
  <pre><code> [HubName("MovementHub")]
  public class MovementHub : Hub
  {
      public void UpdatePlayerPosServer(PlayerPosition playerPosition)
      {
          playerPosition.LastUpdatedBy = Context.ConnectionId;
          Clients.AllExcept(playerPosition.LastUpdatedBy).updatePlayerPosClient(playerPosition); //debugging here shows the playerposition all filled out nicely. this hub method is HIT.
      }
  }
  </code></pre>
  
  <p><strong>Client Method</strong></p>
  
  <pre><code>$(() =&gt; {
  
  var connection = (&lt;any&gt;$.connection).MovementHub; 
  
      //this method is never called
     connection.client.updatePlayerPosClient = (playerPosModel) =&gt; {
          alert("updatingremotePlayers: " + playerPosModel);            
      }
  
  });
  </code></pre>
  
  <p><strong>Hub Start (typescript class. method is called from another class)</strong></p>
  
  <pre><code>public updateServerPos = (x: number, y: number) =&gt; {
          var connection = (&lt;any&gt;$.connection).MovementHub;         
          this.LoginID = $("#displayname").val();
  
          $.connection.hub.start().done(() =&gt; {
              var playerposModel = { Id: this.LoginID, X: x, Y: y };
              connection.server.updatePlayerPosServer(playerposModel); //debugging here shows me that "connection" has the client method bound at this point
          }).fail(function(error) {
              console.log(error);
          });
      }
  </code></pre>
  
  <p>I've read a few posts on this that specify you have to have the client method bound before hub start, but IT IS. And the server method is getting called correctly. So not sure what's goin on here.</p>
  
  <p><strong>Edit:</strong> I realized, I'm an idiot and might be falling victim to being skipped by the "AllExcept" call on clients. I was the exception! lol</p>
  
  <p>The only remaining problem onw is why I have to have the client Method "instantiated" in an IFFE? I'd like to put it in the same Typescript class where the server method is being called from.</p>