zio.http.ServerSentEvent
See theServerSentEvent companion object
final case class ServerSentEvent(data: String, eventType: Option[String], id: Option[String], retry: Option[Int])
Server-Sent Event (SSE) as defined by https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
Value parameters
- 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
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article