onLine

import { onLine } from '@hullo/browser'

An observable of boolean values where true is sent if browser reports working internet connection and false if it does not.

import { onLine } from '@hullo/browser';
onLine().subscribe({
next(online) {
console.log(online ? "online" : "offline");
}
});