How to check internet connection status in NodeJs with example
February 10, 2022 · 1 min read
Nodejs Is a javascript environment for Running applications on Desktop and IoT devices. Sometimes, We need to check internet connection is available in IoT Rasberry PI devices. There are multiple ways we can check internet network connection in Nodejs. How to detect the Internet connection is offline in Nodejs? NodeJS has an inbuilt dns module for the domain name system(DNS) for IP address lookup and name resolution. It provides lookup() function to check name resolution....