Create WebSockets between a TCP server and HTTP server in node.js

后端 未结 3 1136
一个人的身影
一个人的身影 2021-02-03 14:20

I have created a TCP server using Node.js which listens to clients connections. I need to transmit data from TCP server

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-03 14:44

    If you need to communicate server-server than websockets is probably not a best choice. Try one of RPC libraries, or just use HTTP or your own protocol.

提交回复
热议问题