title: Should Signalr 2 work with websockts on windows 10, kestrel and aspnet core 1.0
body: <p>Using the following in startup</p>
  
  <pre><code>        app.UseWebSockets();
  
          app.Map("/signalr", signalrApp =&gt;
          {
              signalrApp.UseKatana(config =&gt;
              {
                  config.RunSignalR(new HubConfiguration
                  {
                      EnableDetailedErrors = true,
  
                  });
              });
          });
  </code></pre>
  
  <p>and a simple hub</p>
  
  <pre><code>public class MyHubBroadcaster : Hub
  {
       public void Test()
      {
          Clients.All.addContosoChatMessageToPage("a", "b");
      }
  }
  </code></pre>
  
  <p>and starting signalr</p>
  
  <pre><code>var connection = $.hubConnection();
  connection.logging = true;
  var contosoChatHubProxy = connection.createHubProxy('myHubBroadcaster');
  contosoChatHubProxy.on('addContosoChatMessageToPage', function (userName, message) {
      console.log(userName + ' ' + message);
  });
  console.log(connection);
  var promise = connection.start();
  promise.done(function () {
      console.log('Now connected, connection ID=' + connection.id);
      setInterval(() =&gt; {
          contosoChatHubProxy.invoke('test').done((d) =&gt; console.log(d));
      }, 10000);
  })
  promise.fail(function () { console.log('Could not connect'); });
  </code></pre>
  
  <p>negotiantion returns <code>TryWebSockets = false</code></p>
  
  <p>Am i missing something or should this work?</p>
  
  <p>main.cs</p>
  
  <pre><code>            var host = new WebHostBuilder()
                 .UseKestrel()
                 .UseContentRoot(Directory.GetCurrentDirectory())
                 .UseIISIntegration()
                 .UseStartup&lt;Startup&gt;()
                 .Build();
  
              host.Run();
  </code></pre>
  
  <p>project.json</p>
  
  <pre><code>{
    "dependencies": {
      "Microsoft.AspNet.SignalR.Core": "2.2.1",
      "Microsoft.AspNetCore.Diagnostics": "1.0.0",
      "Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
      "Microsoft.AspNetCore.StaticFiles": "1.0.0",
      "Microsoft.Extensions.Logging.Console": "1.0.0",
      "Microsoft.ServiceFabric": "5.1.163",
      "Microsoft.ServiceFabric.Data": "2.1.163",
      "Microsoft.ServiceFabric.Services": "2.1.163",
      "S-Innovations.ServiceFabric.Gateway.RegistrationMiddleware.AspNetCore": "1.0.1-pre-2016082001",
      "Microsoft.AspNetCore.Owin": "1.0.0",
      "AspNet.Hosting.Katana.Extensions": "1.0.0-alpha3-final",
      "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
      "Microsoft.AspNetCore.WebSockets.Server": "0.1.0"
    },
  
    "tools": {
    },
  
    "frameworks": {
      "net452": {
        "frameworkAssemblies": {
          "System.Numerics": "4.0.0.0"
        }
      }
    },
  
    "buildOptions": {
      "emitEntryPoint": true,
      "preserveCompilationContext": true
    },
  
    "publishOptions": {
      "include": [
        "wwwroot",
        "web.config"
      ]
    },
  
    "scripts": {
    }
  }
  </code></pre>