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

前端 未结 6 1206
囚心锁ツ
囚心锁ツ 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:08

    node-net-ping is an awesome module that uses raw sockets.

    And, if you are looking for only raw sockets, the same developer has a module for that too: node-raw-socket.

提交回复
热议问题