I am having an issue with all browsers not making a websocket connection over port 80 to my IIS 10 webserver. If I RDP into the server and browse to the application or if I use ssl (443) it works just fine. It does successfully fallback to longpolling but I would like to strictly use websockets.
I am running an asp.net mvc 5 app using the 4.6 framework. Websockets are enabled on the server. Has anyone else ran into this issue or have any suggestions to resolve it?
EDGE error: jquery.signalR-2.4.3.js:1893 WebSocket connection to 'ws://' failed: Connection closed before receiving a handshake response
Firefox, Chrome error: jquery.signalR-2.4.3.js:1893 WebSocket connection to 'ws://' failed:
progress = $.connection.manifestHub;
console.log(progress);
progress.client.ShowProgress = function (message) {
$('#ProgressMessage').width(message);
};
$.connection.hub.logging = true;
$.connection.hub.start({ transport: 'webSockets' }).done(function () {
connectionId = $.connection.hub.id;
$("#connectionId").val(connectionId);
console.log(connectionId);
});
var hubConfig = new HubConfiguration();
hubConfig.EnableDetailedErrors = true;
app.MapSignalR(hubConfig);