Event

data class Event(val event: String, val data: String = "", val id: SseEventId? = null) : SseMessage

Constructors

Link copied to clipboard
constructor(event: String, data: ByteArray, id: SseEventId? = null)
constructor(event: String, data: InputStream, id: SseEventId? = null)
constructor(event: String, data: String = "", id: SseEventId? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: SseEventId? = null

Functions

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