File/Data transfer between two node.js servers

后端 未结 1 2051
予麋鹿
予麋鹿 2021-01-14 07:18

I am trying to set up a small system having one server (aka sensor) transfer data files to another server (aka server) (both running node.js apps) when it sees that the othe

相关标签:
1条回答
  • 2021-01-14 07:35

    What you are using is just the server socket.io which can only accept incoming connections. To connect to another server you need socket.io-client package. This will give you the connect function like one you usually use in the browser, now you can use it from node.js itself.

    0 讨论(0)
提交回复
热议问题