ServerSentEvent

constructor(type: String, data: String, id: String?)

Parameters

type

The event type from the event: field. message if the server did not specify one.

data

The concatenated content of the event's data: fields.

id

The id of the most recent id: field if any.