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
| Parameter | Type | Description |
|---|---|---|
| event | K | The event name. |
| data | T[K] | The payload, as the emitter's map types it. |
Returns
void