1.0.2 • Published 6 years ago
network-changes v1.0.2
network-changes
Detect network changes
Installation
npm i network-changes
Usage
import { NetworkChanges } from 'network-changes'
const netChanges = new NetworkChanges();
netChanges.onChange().subscribe(interfaces => {
console.log(`Network has changed!`, interfaces);
});
netChanges.set
subscription.unsubscribe();