Comments (6)
@RaedKhalafDAZN i apologize for long response. We will make enhancement in upcoming release (end of this week or start of the next)
from javascript.
What do you mean by “access to the current active listeners”? What exactly expected from access to the list of functions?
from javascript.
@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
removeAllListeners() {
this._listeners = [];
}
// Added
getAllListeners() {
return this._listeners;
}
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.
from javascript.
@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.
from javascript.
Hi @parfeon, that would be great!
can we have a timeline to do that ?
I can contribute to support this.
from javascript.
@parfeon any updates ?
from javascript.
Related Issues (20)
- Button width is not responsive in smaller device HOT 2
- deprecated [email protected] HOT 3
- Listener exception generates status 400, error should contain contextual error information HOT 3
- PNNetworkIssuesCategory in ios ionic capacitor app HOT 2
- vm2 resulting in critical Audit failure for PubNub SDK HOT 6
- @types/pubnub missing getToken HOT 2
- messages not compressed
- pubnub.push.listChannels only return 500 channels MAX
- What's the deal with the license? HOT 1
- Case sensitive path issue HOT 1
- Formidable / Superagent Build Issue With Nextjs & Typescript HOT 9
- decrypt method of legacyCryptoModule throws an error for unencrypted string values with "_" HOT 3
- i am getting internal server error while using the message action api in pubnub HOT 1
- Documentation around the setProxy method
- SDK Migration from pn_gcm to pn_fcm (HTTP v1 FCM)
- PNBadRequestCategory when using grantToken after an upgrade from v7 to v8 of the API HOT 1
- Module parse failed: Unexpected token. You may need an additional loader to handle the result of these loaders.
- Typings for new features (Event Engine & Listeners)
- REST API request processing error, check status for details HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript.