Web SDKv1.0.0

EventEmitter.emit()

The SDK's own: calls every handler of the event synchronously, in the order they subscribed; one that throws is logged and does not stop the others. Kernstra.events exposes on and off only.
methodEmittingsince 1.0.0

Signature

emit<K extends keyof T>(event: K, data: T[K]): void

Parameters

ParameterTypeDescription
eventKThe event name.
dataT[K]The payload, as the emitter's map types it.

Returns

void

More in EventEmitter