在服务器上使用webscoket需要在nginx上增加支持配置

proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

猜你喜欢

转载自blog.csdn.net/zhuwei_clark/article/details/77880802
今日推荐