lib-jitsi-meet
    Preparing search index...

    The class implements basic event operations - add/remove listener. NOTE: The purpose of the class is to be extended in order to add this functionality to other classes.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Adds new cancellable listener.

      Parameters

      • eventName: string

        the name of the event

      • listener: EventListener

        the listener.

      Returns () => void

      • The unsubscribe function.
    • Alias for on method.

      Parameters

      • eventId: string

        The event ID.

      • handler: EventListener

        Handler for the event.

      Returns void

    • Adds new listener.

      Parameters

      • eventName: string

        the name of the event

      • listener: EventListener

        the listener.

      Returns EventEmitter

      • The emitter, so that calls can be chained.
    • Emits an event.

      Parameters

      • event: string

        event name

      • ...args: any[]

      Returns void

    • Returns the number of listeners for the specified event.

      Parameters

      • OptionaleventName: string

        The name of the event.

      Returns number

      • The number of listeners for the event.
    • Removes event listener.

      Parameters

      • eventId: string

        The event ID.

      • Optionalhandler: EventListener

        Optional, the specific handler to unbind.

      Returns void

    • Attaches a handler for events (e.g., "participant joined") in the conference. All possible events are defined in JitsiConferenceEvents.

      Parameters

      • eventId: string

        The event ID.

      • handler: EventListener

        Handler for the event.

      Returns void

    • Adds a one-time listener function for the event.

      Parameters

      • eventId: string

        The event ID.

      • handler: EventListener

        Handler for the event.

      Returns void

    • Alias for off method.

      Parameters

      • eventId: string

        The event ID.

      • Optionalhandler: EventListener

        Optional, the specific handler to unbind.

      Returns void

    • Removes listener.

      Parameters

      • eventName: string

        the name of the event that triggers the listener

      • listener: EventListener

        the listener.

      Returns EventEmitter

      • The emitter, so that calls can be chained.