@ionic/discover
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -72,10 +72,15 @@ "use strict"; | ||
sayHello() { | ||
for (let iface of this.getInterfaces()) { | ||
const message = new Buffer(this.buildMessage(iface.address)); | ||
this.client.send(message, 0, message.length, PORT, iface.broadcast, err => { | ||
if (err) { | ||
this.emit('error', err); | ||
} | ||
}); | ||
try { | ||
for (let iface of this.getInterfaces()) { | ||
const message = new Buffer(this.buildMessage(iface.address)); | ||
this.client.send(message, 0, message.length, PORT, iface.broadcast, err => { | ||
if (err) { | ||
this.emit('error', err); | ||
} | ||
}); | ||
} | ||
} | ||
catch (e) { | ||
this.emit('error', e); | ||
} | ||
} | ||
@@ -82,0 +87,0 @@ getInterfaces() { |
{ | ||
"name": "@ionic/discover", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Simple UDP based protocol for service discovery implemented in pure JS. Not mDNS or bonjour. ", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12453
249