Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mdns = new MDNS({hostName: "time"}, function(message, value) {
if ((MDNS.hostName === message) && value) {
timeService.txt.now = timeInMinutes();
this.add(timeService);
Timer.set(function() {
timeService.txt.now = timeInMinutes();
mdns.update(timeService);
}, millisecondsToNextMinute(), 60 * 1000);
}
});
new MDNS({hostName}, function(message, value) {
if (MDNS.hostName === message)
hostName = value;
});