【发布时间】:2018-09-19 13:02:03
【问题描述】:
我在这里按照这个例子 https://socket.io/get-started/chat
我现在正试图在我的生产服务器上运行它,但我碰壁了
在我的 ssh 连接中,我正在做节点 index.js 我有“正在收听*:3000”消息
然后我试图通过我的浏览器访问 index.html 使用
https://mywebsite/websocket/index.html 似乎索引正在查找 /socket.io/socket.io.js 文件,所以这部分应该没问题
但是在浏览器控制台中我有这个错误 socket.io.js:7 POST https://mywebsite.com/socket.io/?EIO=3&transport=polling&t=MNnvCry404()
我在 apache 上并且我已经激活了 https 在我的 ssh 控制台中,我应该看到用户已连接,但我没有。
【问题讨论】: