# Kernstra.events

```ts
static get events(): GlobalEvents
```

Global `GlobalEvents` — `on()` and `off()` for `GlobalEventMap`; see the [Event System](https://kernstra.com/docs/web-sdk/api/events). Only the SDK emits on it. Kept across `destroy()`: subscribe once, at module level if you like.

- Kind: static property
- Since: 1.0.0

Returns `GlobalEvents`: `on()` and `off()` for `GlobalEventMap`.

```ts
Kernstra.events.on('licenseChanged', (state) => {
  console.log('license', state.valid ? state.plan : state.reason);
});
```

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

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