1.0.1 • Published 8 years ago

chromecast-detector v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

chromecast-detector

detect all chromecasts in local wifi n/w

installation

npm i chromecast-detector

usage

command line

The app will show detected chromecasts to STDOUT

node index.js

specify the chromecast name and ttl(second) as JSON

node index '{"names":["chrome-cast-name"],"ttl": 60}'

module

"detect" event is fired

var detector = require('chromecast-detector');
detector.on('detect', function (cast){
  console.log(cast);
});
detector.listen();

stop to listen

detector.terminate();

resend the query

detector.sendQuery();