i have signalR websocket to show notification
the code for connecting like :
$.connection.hub.start().done(function(){
console.log("connected");
});
var notif = $.connection.notificationHub;
console.log(notif);
after deploying to a production server signalR is not working and showing this error in console :
production server is using iis 8.5 what makes this error? thank you.
ASP.NET Core SignalR is a library that simplifies adding real-time web functionality to apps. It uses WebSockets whenever possible. For most applications, we recommend SignalR rather than raw WebSockets.
In the default mode, the app server creates five server connections with Azure SignalR Service. The app server uses the Azure SignalR Service SDK by default. In the following performance test results, server connections are increased to 15 (or more for broadcasting and sending a message to a big group).
SignalR handles connection management automatically, and lets you broadcast messages to all connected clients simultaneously, like a chat room. You can also send messages to specific clients.
Do you have this tag in your web.config
file within the <system.web>
tag?
<httpRuntime maxRequestLength="40960" targetFramework="4.5" requestValidationMode="2.0" />
If that doesn't work try failing over to long polling
instead of WebSockets
in SignalR
and see if you get the same error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With