Skip to main content

Interface: EventAttributes

@divine/web-service.EventAttributes

Metadata to be transmitted along with a single event by the EventStreamResponse helper class.

Properties

[EVENT_ID]

Optional [EVENT_ID]: string

Used to update the client's last event ID value.

Defined in

web-service/src/helpers.ts:163


[EVENT_RETRY]

Optional [EVENT_RETRY]: number

The reconnection time. If the connection to the server is lost, the browser will wait for the specified time before attempting to reconnect.

Defined in

web-service/src/helpers.ts:169


[EVENT_TYPE]

Optional [EVENT_TYPE]: string

A string identifying the type of event described.

Defined in

web-service/src/helpers.ts:166