Skip to content

ElectronNet.isOnline method

ElectronNet › isOnline

Unofficial

Whether there is currently internet connection.

A return value of false is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of true is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful.

Signature:

isOnline(): boolean

Returns: booleanWhether there is currently internet connection.