You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Reactive JS application, we need to react to certain types of events in different parts of the application,
when we call "AddListener" to pubnub, we need to make sure its not already added before.
because it will create duplicate messages to the platform.
This listener stores listeners created at some point and then re-use them when you want to register?
If they are the same function objects (during repetitive registration and removal), then from our side we can try to validate whether the listener already added or not.
Activity
parfeon commentedon Dec 14, 2023
What do you mean by “access to the current active listeners”? What exactly expected from access to the list of functions?
RaedKhalafDAZN commentedon Dec 16, 2023
@parfeon I mean, we have in listernes_manager.js all sort of functions to CUD listeners, but we are missing Read of the current listeners.
in listeners_manager.js
In Reactive JS application, we need to react to certain types of events in different parts of the application,
when we call "AddListener" to pubnub, we need to make sure its not already added before.
because it will create duplicate messages to the platform.
parfeon commentedon Dec 17, 2023
@RaedKhalafDAZN thank you for clarification.
This listener stores listeners created at some point and then re-use them when you want to register?
If they are the same function objects (during repetitive registration and removal), then from our side we can try to validate whether the listener already added or not.
RaedKhalafDAZN commentedon Dec 19, 2023
Hi @parfeon, that would be great!
can we have a timeline to do that ?
I can contribute to support this.
RaedKhalafDAZN commentedon Jan 8, 2024
@parfeon any updates ?
parfeon commentedon Jan 10, 2024
@RaedKhalafDAZN i apologize for long response. We will make enhancement in upcoming release (end of this week or start of the next)
mohitpubnub commentedon Sep 16, 2026
The new listener style support might help here.
Closing this as the the new approach support is released.