osxreachability
Monitor reachability state from Node
Last updated 3 years ago by mderezynski .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install osxreachability 
SYNC missed versions from official npm registry.

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!

Current Tags

  • 0.3.2                                ...           latest (3 years ago)

7 Versions

  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |