Function setMaxListeners

  • Increases the total number of registered event handlers before a node warning is emitted. In most cases this is not needed but in the case where you have one event emitter for multiple handlers you'll need to increase the limit.

    Parameters

    • target: EventEmitter | EventTarget

      The specific EventTarget or EventEmitter to increase the warning for.

    • limit: number = 100000

      The limit before the warning is emitted, defaults to 100000.

    Returns void

Generated using TypeDoc