如何更改socket.io.slim.js中socket.io的路径

发布于 2025-01-25 20:47:17 字数 227 浏览 2 评论 0原文

我正在使用socket.io在我们的一个元项目中进行多源体验。我们已将代码部署在HTTPS服务器中,部署了多源体验后。检查错误时,我们发现了以下错误。 在这里输入映像

有人可以提出任何改变这条道路的想法吗?

I am using socket.io for multiuser experience in one of our metaverse projects. We have deployed the code in a https server and after deploying the multiuser experience collapsed. When check for errors, we have found the following error.
enter image description here

enter image description here

we need to change the path of Url for where it needs to look for socket.io.

Can someone suggest any ideas for changing this path?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请帮我爱他 2025-02-01 20:47:17

这通常意味着两件事之一:

  1. socket.io服务器未运行
  2. socket.io服务器在另一个位置运行

,请确保socket.io使用https服务器,而不是http One,并且客户端正在连接到正确的域。

This usually means one of 2 things:

  1. the socket.io server is not running
  2. the socket.io server is running on a different place

Make sure socket.io is using the HTTPS server, not the HTTP one, and the client is connecting to the correct domain.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文