EventStreamSettings.onEvent property

Callback for handling events from the event stream

Signature:

onEvent: (event: EventStreamEvent) => void;