How to “Ping” from a Node.js app?

前端 未结 6 1203
囚心锁ツ
囚心锁ツ 2020-12-14 05:42

I want to ping a server from my node.js app.

Is that doable?

Thanks

6条回答
  •  别那么骄傲
    2020-12-14 06:20

    I know this answer has been answered quite a while ago, but for people who are looking for the same answer, I have written a module on github to try simplify it more :)

    https://github.com/bscarvell/pingwrap

提交回复
热议问题