EventMessage interface
Represents a message sent in an event stream https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format
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