ServerSentEvent

data class ServerSentEvent(val type: String, val data: String, val id: String?)

A single event read from a Server-Sent Events (SSE) stream.

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.

Constructors

Link copied to clipboard
constructor(type: String, data: String, id: String?)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String?
Link copied to clipboard