Liberty
Liberty

Reputation: 365

SignalR works on local IIS but not on production server, Websocket not recognized

I'm using SignalR for real-time interaction. It works well on my local IIS, when I open Google Chrome's DevTool and check the Network tab, in the WS section I can see the request as in the picture below. All the requests also appear in the XHR tab.

However when I deploy it on a server with IIS 10, functionally my code still works, but on WS tab there's nothing at all, all the requests only appear on the XHR tab.

Did I miss any environment setup? And does that affect my performance? Thank you so much for your help.

enter image description here

Upvotes: 2

Views: 1459

Answers (1)

MrMoeinM
MrMoeinM

Reputation: 2388

You need to activate WebSocket Protocol on production server IIS.

https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support

Upvotes: 3

Related Questions