Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node check if not connected to internet

let isNotConnected = !await require('dns').promises.resolve('google.com').catch(()=>{});
 
PREVIOUS NEXT
Tagged: #node #check #connected #internet
ADD COMMENT
Topic
Name
9+8 =