I am building an application in which I need to detect the any changes in connected wireless network ie when a user transfers from one network to another and log the change.
I am using electron js and wireless-tools for nodejs.
So is there a way to do this or I have to use setInterval() to check every few seconds.
Any suggestions/solutions are appreciated.Thanks.
online (in index.html or in other html file) to detect if an internet connection exist like this :
In index.html you can do this :
and in your file main.js :