eroak / rpi-433

Simple NodeJS module to send and receive decimal codes through 433Mhz device on RaspberryPI 2
46 stars 23 forks source link

rfSniffer.removeListener('data'); #8

Open PJCzx opened 7 years ago

PJCzx commented 7 years ago

Hello,

I'm considering to use the plugin into another plugin that push me to try to use this rfSniffer.removeListener('data');

Any idea to perform the action ? Otherwise, is it possible to implement it ?

Thx PJCzx

eroak commented 7 years ago

Hello,

I'm trying to understand why you need a "removeListener" function ? What exactly is the problem ?

PJCzx commented 7 years ago

I had to implement a system that listen to responses to sent message and need to filter (kind of routing system). For each action, I instantiate an object that listen all answers before to know the answer is for it , handle the case and be uninstantiated. The issue is that I received as much event than I instantiated the object... my goal was the remove the listener properly before uninstantiated.

Is this clear ?

In any case, I encountered bad signal issues that pushed me to simplify a lot my system, and I do not use this anymore. This can be a nice feature anyway.

Thx in advance

Le 23 avr. 2017 à 18:37, eroak notifications@github.com a écrit :

Hello,

I'm trying to understand why you need a "removeListener" function ? What exactly is the problem ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.