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>> 

Methods

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