ServerSentEvent

zio.http.ServerSentEvent
See theServerSentEvent companion object
final case class ServerSentEvent(data: String, eventType: Option[String], id: Option[String], retry: Option[Int])

Attributes

data

data, may span multiple lines

eventType

optional type, must not contain \n or \r

id

optional id, must not contain \n or \r

retry

optional reconnection delay in milliseconds

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product