同时向多个命名空间发送消息
我最近刚刚开始使用 socket.io
,似乎遇到了一个问题。我已经实现了多个命名空间,可以将数据发送到服务器中。但是,我意识到我一次只能将数据发送到一个名称空间,并且只有当该操作完成时,才会开始向第二个名称空间发送数据。有什么办法可以让我同时进行这项工作吗?
如果有人知道我将如何解决这个问题,我将非常感谢任何建议和资源链接。
I just recently started working with socket.io
and seem to be running into an issue. I have implemented multiple namespaces where I can emit data coming into the server. However, I have realized that I can only emit data to a single namespace at a time and only when that completes does data to the second namespace begin emitting. Is there someway I can have this work concurrently?
If anyone has any idea, how I would go about tackling this issue, I would greatly appreciate any advice and links to resources.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论