I have just started working with SignalR. I have implemented real-time data reflection on my site using signalr. I was getting \"Error during Web-Socket handshake: Unexpecte
If you're behind Nginx, add these three lines (the ones starting with proxy_):
server {
listen 443; # Or 80 or whatever
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
...
}
HTTPS/HTTP is not the issue. WSS will be automatically used on HTTPS pages, and WS used on HTTP, without any manual setting.