Giter VIP home page Giter VIP logo

Comments (6)

parfeon avatar parfeon commented on June 11, 2024 1

@RaedKhalafDAZN i apologize for long response. We will make enhancement in upcoming release (end of this week or start of the next)

from javascript.

parfeon avatar parfeon commented on June 11, 2024

What do you mean by “access to the current active listeners”? What exactly expected from access to the list of functions?

from javascript.

RaedKhalafDAZN avatar RaedKhalafDAZN commented on June 11, 2024

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

parfeon avatar parfeon commented on June 11, 2024

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

RaedKhalafDAZN avatar RaedKhalafDAZN commented on June 11, 2024

Hi @parfeon, that would be great!
can we have a timeline to do that ?
I can contribute to support this.

from javascript.

RaedKhalafDAZN avatar RaedKhalafDAZN commented on June 11, 2024

@parfeon any updates ?

from javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.