frida-device-watcher
v1.0.1
Published
Get notified when a device connects or disconnects
Downloads
2
Readme
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