Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基于express部署socket.io连接失败 #52

Open
LuoHongXin opened this issue Sep 26, 2021 · 0 comments
Open

基于express部署socket.io连接失败 #52

LuoHongXin opened this issue Sep 26, 2021 · 0 comments

Comments

@LuoHongXin
Copy link

因为express最后是导出一个express实例的app出去作为服务,为了访问socket.io的3000端口服务,我用了http-proxy-middleware做了代理,然后我本地访问socket.io服务测试是没问题的,serverless 部署后访问线上的就会显示客户端 WebSocket 连接失败。
具体代码地址:https://github.com/LuoHongXin/Kami_Component_Library/tree/master/%E5%AE%9E%E6%97%B6%E8%81%8A%E5%A4%A9demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant