title: Can't call javascript client method in signalr
body: <p>The following code works fine in IIS Express, but failed in IIS10.</p>
  
  <p>The weird thing is serverside method can successfully be invoked, however clientside method can't.</p>
  
  <h3>JavaScript</h3>
  
  <pre><code>var hub = $.connection.liveRoomHub;
  hub.client.addMessageToPage = function(data){
      debugger;//here, this method never gets invoked
      console.log(JSON.stringify(data));
  };
  $.connection.hub.start()
      .done(function() {
          hub.server.join('room1')
          .done(function(){
              debugger; //code can run into here
              hub.server.sendMessage('user','test','room1');
          })
      });
  </code></pre>
  
  <h3>C#</h3>
  
  <pre><code>public class LiveRoomHub : Microsoft.AspNet.SignalR.Hub
  {
      public ILogger Logger { get; set; }
  
      public async Task SendMessage(string name, string message, string roomName)
      {
          await Clients.Group(roomName)
              .addMessageToPage(new
              {
                  Name = name,
                  Message = message
              });
          Logger.Info($"{name}send msg：{message}in room:{roomName}，");//logged
      }
  
      public async Task Join(string roomName)
      {
          await Groups.Add(Context.ConnectionId, roomName);
          Logger.Info($"{Context.ConnectionId} enter room: {roomName}");//logged
      }
  }
  </code></pre>