ServerSentEventMetadata

sealed interface ServerSentEventMetadata<T>

Server-sent event interface.

Report a problem

See also

with default String parameter data

with parameterized parameter data

Inheritors

Properties

Link copied to clipboard
abstract val comments: String?

comment lines starting with a ':' character.

Link copied to clipboard
abstract val data: T?

data field of the event.

Link copied to clipboard
abstract val event: String?

string identifying the type of event.

Link copied to clipboard
abstract val id: String?

event ID.

Link copied to clipboard
abstract val retry: Long?

reconnection time, in milliseconds to wait before reconnecting.