Adds a listener to the end of the listeners array for the specified event.
Execute each of the listeners that may be listening for the specified event name in order with the list of arguments.
Execute each of the listeners that may be listening for the specified event name in order with the list of arguments.
Returns an array of listeners for the specified event. This array can be manipulated, e.g. to remove listeners.
Returns an array of listeners that are listening for any event that is specified. This array can be manipulated, e.g. to remove listeners.
Adds a listener that will execute n times for the event before being removed. The listener is invoked only the first n times the event is fired, after which it is removed.
Remove a listener from the listener array for the specified event. Caution: changes array indices in the listener array behind the listener.
Removes the listener that will be fired when any event is emitted.
Adds a listener to the end of the listeners array for the specified event.
Adds a listener that will be fired when any event is emitted.
Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
Removes all listeners, or those of the specified event.
Removes all listeners, or those of the specified event.
Remove a listener from the listener array for the specified event. Caution: changes array indices in the listener array behind the listener.
By default EventEmitters will print a warning if more than 10 listeners are added to it. This is a useful default which helps finding memory leaks. Obviously not all Emitters should be limited to 10. This function allows that to be increased. Set to zero for unlimited.