Interface: EventStreamEvent
@divine/uri.EventStreamEvent
Represents a text/event-stream
(SSE/server-sent events) event.
Properties
data
• data: string
The event data, as a string.
Defined in
uri/src/parsers/event-stream.ts:10
event
• Optional
event: string
The event name.
Defined in
uri/src/parsers/event-stream.ts:7
id
• Optional
id: string
The event ID, to update the client's last event ID value.
Defined in
uri/src/parsers/event-stream.ts:13
retry
• Optional
retry: number
The client reconnection time, in milliseconds.