repeated alerts on resolved data
See original GitHub issuefirst, thanks for the great plugin, works really well … I am facing a strange issue ( it might be that I am not using the plugin correctly ) and it is when I call zero conf scan and on.resolve, I alert the resolved data however the for the number of times I call the method, number of alerts increment. ie the first time I call method i get one alert, second time i call the method i get 2 alerts at the same time and so on… BTW there is a time gap between my calls (3 secs …)
below is the method that I call…
method_zeroConf(type = "osc", protocol = "tcp", domain = "local.") {
//zeroconf.on('stop', () => alert('stop any running scan'));
try {
zeroconf.stop();
//zeroconf.removeDeviceListeners();
zeroconf.scan(type, protocol, domain);
//zeroconf.on('start', () => alert('started'));
//zeroconf.on('found', () => alert('found.......'));
zeroconf.on("resolved", data => alert(JSON.stringify(data, null, "\t")));
}
catch(err) {
alert('z-conf was not successful !', err);
}
}
now is there a way to clear the data before scan ? thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
repeated alerts - Microsoft Community Hub
Re: repeated alerts What we are looking for is; For every server, alert should be triggered only once (until issue resolves) and new...
Read more >Configure an alert action to repeat until acknowledged or ...
2. Click Settings > Manage Alerts. 3. Edit the Alert to be repeated. 4. Go to the Trigger Actions tab. 5. Edit ...
Read more >Multiple alert notifications are sent for an alert even when the ...
Describe the bug Multiple alert notifications are sent for a single alert. It does not happen all the time but happens intermittently.
Read more >Tips to reduce alert fatigue and avoid recurring incidents
Learn best practices to reduce alert fatigue and avoid recurring incidents on AWS using monitoring, root cause analysis, Datadog, and more.
Read more >How to enable Amazon CloudWatch Alarms to send repeated ...
In this solution, we will enable repeated alarm notification by applying a specific tag on the CloudWatch alarm resources. Within the Step ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This conditional should take care of making sure there is only one listener for each event, @nomoreboredom you were getting the issue too?
@Apercu Thanks for your response… I still have the issue, I added the componentDidMount before my render () and removeDeviceListeners() after resolve() but still get duplicates… can you please share a sample code ?
thanks…