0.3.2 • Published 7 years ago

osxreachability v0.3.2

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

osxreachability

osxreachability allows to monitor a Mac's network reachability

Example usage:

  const reach = require('osxreachability');
   
  ...

  reach.Reachability.start(function(state){

	switch(state) {

		case reach.NOT_REACHABLE:
			// ...
			break;

		case reach.REACHABLE_WIFI:
			// ...
			break;
	}
  });

  ...
  
  reach.Reachability.stop();
 

It is important to call stop() in order to release the native reachability monitor's resources!

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago