1.0.1 • Published 9 years ago

frida-device-watcher v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

frida-device-watcher

Get notified when a device connects or disconnects.

Example

var Watcher = require('frida-device-watcher');
var frida = require('frida');

var w = new Watcher(frida);

w.on('connect', function(device){
  console.log('connected');
  console.log(device);
});

w.on('disconnect', function(){
  console.log('disconnected');
});

Installation

$ npm install frida-device-watcher

API

new Watcher(frida, opts)

Options:

  • delay: Delay in miliseconds to wait before checking again. Defaults to 1000.

License

MIT