EventMessage interface

Properties

data

The event data

event

A string identifying the type of event described.

id

The event ID to set the EventSource object's last event ID value.

retry

The reconnection interval (in milliseconds) to wait before retrying the connection

Property Details

data

The event data

data: string

Property Value

string

event

A string identifying the type of event described.

event: string

Property Value

string

id

The event ID to set the EventSource object's last event ID value.

id: string

Property Value

string

retry

The reconnection interval (in milliseconds) to wait before retrying the connection

retry?: number

Property Value

number