Creates a new event.
The event type from the event: field. defaultEventType if the server did not specify one.
The concatenated content of the event's data: fields.
Optionalid: string
The id of the most recent id: field if any.
ReadonlydataThe concatenated content of the event's data: fields.
Optional ReadonlyidThe id of the most recent id: field if any.
ReadonlytypeThe event type from the event: field. defaultEventType if the server did not specify one.
A single event read from a Server-Sent Events (SSE) stream.