Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
//hook all sorts of events
//because:
//
//https://github.com/agnat/node_mdns/issues/91
info("Initializing MDNS Browser");
this.browser = mdns.browseThemAll();
this.browser.on("serviceUp",(service) => {
this.browseService(service);
});
//this.browser.on("serviceDown",(service) => {
// this.dropService(service);
//});
this.browser.on("error",(err) => {
//warn(err);
});
}
constructor() {
super();
//hook all sorts of events
//because:
//
//https://github.com/agnat/node_mdns/issues/91
info("Initializing MDNS Browser");
this.browser = mdns.browseThemAll();
this.browser.on("serviceUp",(service) => {
this.browseService(service);
});
//this.browser.on("serviceDown",(service) => {
// this.dropService(service);
//});
this.browser.on("error",(err) => {
//warn(err);
});
}