question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

repeated alerts on resolved data

See original GitHub issue

first, 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:open
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
balthazarcommented, Oct 12, 2017

This conditional should take care of making sure there is only one listener for each event, @nomoreboredom you were getting the issue too?

0reactions
amirmatincommented, Oct 19, 2017

@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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found