HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - EventEmitter.emit()

Home > @rainway/web > EventEmitter > emit

EventEmitter.emit() method

Emit an event of the given type.

Signature:

protected emit<TName extends EventName<TEvents>>(eventName: TName, ...args: Parameters<TEvents[TName]>): void;

Parameters

ParameterTypeDescription
eventNameTNameThe name of the event.
argsParameters<TEvents[TName]>The event arguments.

Returns:

void