zio.http.ServerSentEvent
See theServerSentEvent companion class
object ServerSentEvent
Attributes
- Companion
- class
- Graph
-
- Supertypes
- Self type
-
ServerSentEvent.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
def apply[T](data: T, eventType: Option[String], id: Option[String], retry: Option[Int])(implicit di: DummyImplicit): ServerSentEvent[T]
Server-Sent Event (SSE) as defined by https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
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
-
type, must not contain \n or \r
- id
-
id, must not contain \n or \r
- retry
-
reconnection delay in milliseconds, must be >= 0
Attributes
Implicits
Implicits
implicit def contentCodec[T](implicit codecT: BinaryCodec[T], schemaT: Schema[T]): HttpContentCodec[ServerSentEvent[T]]
implicit def defaultContentCodec[T](implicit schema: Schema[T]): HttpContentCodec[ServerSentEvent[T]]
In this article