Adds a listener to be invoked when events of the specified type are emitted. An optional calling context may be provided. The data arguments emitted will be passed to the listener function.
Name of the event to listen to
Function to invoke when the specified event is emitted
Optional context object to use when invoking the listener
Emits an event of the given type with the given data. All handlers of that particular type will be notified.
Name of the event to emit
Returns the number of listeners that are currently registered for the given event.
Name of the event to query
Removes all of the registered listeners, including those registered as listener maps.
Optional name of the event whose registered listeners to remove
Generated using TypeDoc
Optional subscriber instance to use. If omitted, a new subscriber will be created for the emitter.