开发者

Websockets between 2 servers?

开发者 https://www.devze.com 2023-02-21 21:38 出处:网络
I wonder if it\'s possible to use websockets between 2 webservers instead of between a browser and backend?

I wonder if it's possible to use websockets between 2 webservers instead of between a browser and backend?

Im ru开发者_如何转开发nning 2 node.js servers and want to exchange data between them.


Try to look at node2node-socket.io or Socket.io-node-client modules. However I would say that you should stick to built-in net module with pure sockets if you are communicating only between web servers.


Maybe this helps https://github.com/LearnBoost/Socket.IO-node/tree/master/support/node-websocket-client

0

精彩评论

暂无评论...
验证码 换一张
取 消