Interface: ServerSentEvent<T>
Defined in: api/rust-fetch.d.ts:588
One Server-Sent Event
Type Parameters
T
T = any
Properties
data
data:
T
Defined in: api/rust-fetch.d.ts:592
The data: lines joined with \n, or parsed JSON with messageType: 'json'
event
event:
string
Defined in: api/rust-fetch.d.ts:590
The event: field; 'message' when the server didn't set one
id
id:
string
Defined in: api/rust-fetch.d.ts:594
The last event ID (id: field) in effect, or ''