HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - EventEmitter.removeEventListener()

Home > @rainway/web > EventEmitter > removeEventListener

EventEmitter.removeEventListener() method

Remove an event listener for a particular event type.

Signature:

removeEventListener<TName extends EventName<TEvents>>(eventName: TName, handler?: EventHandler<TEvents, TName>): void;

Parameters

ParameterTypeDescription
eventNameTNameThe name of the event.
handlerEventHandler<TEvents, TName>The event handler to remove. If none is provided, all handlers for this event name are removed.

Returns:

void