如何监听附加端口以在 Meteor 中接收数据
How to Listen additional port to receive data in Meteor
如何监听一些额外的端口以从外部服务接收数据并在外部服务发送数据时打印接收到的数据......我如何在 Meteor 中做到这一点。
谢谢
Meteor 应用程序是 Node 应用程序,因此您可以使用 NodeJS 中的模块 API
对于 TCP 或 IPC 使用 net.Server net.createServer()
对于 UDP 使用 dgram dgram.createSocket('udp4');
如何监听一些额外的端口以从外部服务接收数据并在外部服务发送数据时打印接收到的数据......我如何在 Meteor 中做到这一点。
谢谢
Meteor 应用程序是 Node 应用程序,因此您可以使用 NodeJS 中的模块 API
对于 TCP 或 IPC 使用 net.Server net.createServer()
对于 UDP 使用 dgram dgram.createSocket('udp4');