Skip to content

EventInstance

Carries the identity, timing, and payload of an Event to the Listeners that receive it.

Listeners receive an EventInstance as their first argument, whether the Event was appended for asynchronous processing or invoked through immediate(). The instance is immutable; a Listener that needs to react further publishes a new Event rather than altering this one.

readonly createdAt: Date

When the Event was published, in UTC.


readonly eventPrn: string

PRN of the Event definition this Event was published against; the topic a Listener is registered for.


readonly id: string

Unique, lexicographically sortable identifier of this Event.


readonly payload: PropertyMap

Values published with the Event, keyed by the input Properties declared on the Event definition.