# EventEmitter.emit()

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

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.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `event` | `K` | The event name. |
| `data` | `T[K]` | The payload, as the emitter's map types it. |

Returns `void`

Part of [EventEmitter](https://kernstra.com/docs/web-sdk/api/eventemitter) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/eventemitter/emit
