HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - EventEmitter

Home > @rainway/web > EventEmitter

EventEmitter class

Event emitter

Signature:

export declare class EventEmitter<TEvents extends EventProvider<TEvents>> 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the EventEmitter class.

Methods

MethodModifiersDescription
addEventListener(eventName, handler)Add an event listener for a particular event type.
emit(eventName, args)Emit an event of the given type.
removeAllEventListeners()Remove all event listeners.
removeEventListener(eventName, handler)Remove an event listener for a particular event type.