HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - EventEmitter.emit()

Home > @rainway/native > 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