Commit 79984cd0 authored by Clint Mourlevat's avatar Clint Mourlevat

Attempt to fix SignalR issue

parent 8dde38c2
......@@ -63,10 +63,10 @@ namespace Stratis.Guru
else
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
//app.UseHsts();
}
app.UseHttpsRedirection();
//app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseCookiePolicy();
......
......@@ -36,7 +36,7 @@
NProgress.done();
});
}
var signalr = new signalR.HubConnectionBuilder().withUrl("/update").build();
var signalr = new signalR.HubConnectionBuilder().withUrl("/update", { transport: signalR.HttpTransportType.LongPolling }).build();
signalr.on("UpdateTicker", function (message) {
UpdateTicker();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment