As said in the SignalR differences documentation we can use SignalR Core on .NET 4.6.1 and latter...
So I know the code for the startup and configuration for both cases:
SignalR Core:
ConfigureServices
//Add SignalR service
services.AddSignalR();
Startup
app.UseSignalR(routes =>
{
routes.MapHub<NotificationsHub>("/notification");
});
SignalR:
Startup
app.Map("/signalr", map =>
{
map.UseCors(CorsOptions.AllowAll);
var hubConfiguration = new HubConfiguration { };
hubConfiguration.EnableDetailedErrors = true;
map.RunSignalR(hubConfiguration);
});
And my question is, what I need to do in the .NET 4.6.1 startup to map my SignalR hub and etc...? I can't find any documentation about this particular case.
Update1: I tried to run the same code and obviously changed the client code to use the SignalR core approach and what I get now is (not authorized) during negotiation request.