Event
One item of a Server-Sent Events stream.
Yielded by Response.events.
Fields
data @ Str[get]The payload text. Multiple
data:lines are joined with\n.id @ (Str | nil)[get]The event identifier, when the stream sends one.
retry @ (Int | nil)[get]The reconnection delay the stream suggests, when it sends one.
type @ Str[get]The event type. Defaults to
"message"when the stream omitsevent:or sends an empty one.