ServerSentEvent

data class ServerSentEvent(val data: String? = null, val event: String? = null, val id: String? = null, val retry: Long? = null, val comments: String? = null) : ServerSentEventMetadata<String> (source)

Server-sent event.

Report a problem

See also

with parameterized parameter data

Constructors

Link copied to clipboard
constructor(data: String? = null, event: String? = null, id: String? = null, retry: Long? = null, comments: String? = null)

Properties

Link copied to clipboard
open override val comments: String?

comment lines starting with a ':' character.

Link copied to clipboard
open override val data: String?

data field of the event.

Link copied to clipboard
open override val event: String?

string identifying the type of event.

Link copied to clipboard
open override val id: String?

event ID.

Link copied to clipboard
open override val retry: Long?

reconnection time, in milliseconds to wait before reconnecting.

Functions

Link copied to clipboard
open override fun toString(): String