title: SignalR 2.3 cannot read property client
body: <p>Good day,</p>
  
  <p>Unfortunately, I can not get SignalR to work for a private 1 on 1 chat. </p>
  
  <p>Here the following things that I have done:</p>
  
  <p>References that are situated in the head tag of my layout page in the right order:</p>
  
  <pre><code>&lt;script src="~/Scripts/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/jquery.signalR-2.3.0.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Even added both bellow to check if either worked but no luck.</p>
  
  <pre><code>&lt;script src="/signalr/hubs"&gt;&lt;/script&gt;
  &lt;script src="http://localhost:50581/signalr/hubs"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Have an Owin startup class:</p>
  
  <pre><code>[assembly: OwinStartup(typeof(Startup))]
  
  namespace WebApplication6
  {
      public class Startup
      {
          public void Configuration(IAppBuilder app)
          {
  
              var config = new HubConfiguration();
  
              config.EnableDetailedErrors = true;
              config.EnableJavaScriptProxies = true;
  
              app.MapSignalR("/signalr", config);
          }
      }
  }
  </code></pre>
  
  <p>Have my chatHub class with my methods inside:</p>
  
  <pre><code>[HubName("chatHub")]
      public class ChatHub : Hub
      {
      }
  </code></pre>
  
  <p>I have a javascript file named chatboxManager with the following inside:</p>
  
  <pre><code>var connection = $.hubConnection();
  var ChatHub = connection.createHubProxy('chatHub');
  </code></pre>
  
  <p>Using the above I get a connection to the chatHub </p>
  
  <p><a href="https://i.stack.imgur.com/HQ9pY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HQ9pY.png" alt="enter image description here"></a></p>
  
  <p>but it does not recognise the .client the bellow:</p>
  
  <pre><code>// On New User Connected
  debugger;
  ChatHub.client.onNewUserConnected = function (id, name, userid) {
      AddUser(ChatHub, id, name, userid);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Zpf3x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zpf3x.png" alt="enter image description here"></a></p>
  
  <p>If I use this at the beginning of the js file nothing works:</p>
  
  <pre><code>var ChatHub = $.connection.chatHub;
  </code></pre>
  
  <p>Is there something else that I could be missing?</p>
  
  <p>I have de-installed the packages and re-installed them. </p>
  
  <p>Any advice would greatly be appreciated to get this running.</p>
  
  <p>Kind regards and thanks</p>