有关socket.io中的Web插座的问题(后端放置在其他文件夹中)

发布于 2025-01-27 14:30:47 字数 821 浏览 3 评论 0 原文

我正在使用Express JS,socket.io和EasyRTC进行后端。我已经将后端与客户端代码联系起来。我们正在打 http:// localhost:3333/quagmire-api/与服务器端连接。所有其他请求都很好,而不是

此Web插座URL。

当我们使用http:// localhost:3333/quagmire-api/此URL时,此错误即将出现。但是,当我们使用http:// localhost:3333/this URL(指服务器在没有/quagmire-api/的情况下运行时)时,它可以正常工作。 这在这里工作。

帮助我。我该如何解决?

I am using express js, socket.io, and easyRtc for my back-end. I've to connect the back-end with client-side code. And we are hitting
http://localhost:3333/quagmire-api/ to connect with the server-side. All the other requests are coming fine rather than

this web socket url.

error which is coming
This error is coming when we are using http://localhost:3333/quagmire-api/ this url. But when we are using http://localhost:3333/ this url (means when the server is running without /quagmire-api/) it working fine.
working example
This is working here.

Help me with this. How can i resolve this?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文