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.
我想为我的桌面客户端开发一个推送服务器。我正在使用 node.js 来开发这个服务器。所以 socket.io 库允许我们将通知推送到 html,但是否可以将推送通知发送到另一个 node.js 脚本。
是的。只需在其他 node.js 中使用 get
//On the pinging script var socket = io.connect(YOUR_NODEJS_SERVER_LOCATION); ..... });
将其视为服务器将等待此连接请求的浏览器。