Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在做一个项目,其中一个网页需要连接到多个 socket.io node.js 服务器。我该怎么做呢。
您是否尝试过创建两个 socket.io 实例?
var socket1 = io.connect('http://oneplace.com'); var socket2 = io.connect('http://anotherplace.com');