Mixing in this trait lets an akka.stream.scaladsl.Source
of
ServerSentEvents be marshallable to an akka.http.model.HttpResponse
.
Mixing in this trait lets an akka.stream.scaladsl.Source
of
ServerSentEvents be marshallable to an akka.http.model.HttpResponse
.
Attention: An implicit scala.concurrent.ExecutionContext
has to be in scope!
Mixing in this trait lets an akka.http.model.HttpEntity
with a text/event-stream
media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent]
.
Mixing in this trait lets an akka.http.model.HttpEntity
with a text/event-stream
media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent]
.
Attention: An implicit scala.concurrent.ExecutionContext
has to be in scope!
Representation of a Server-Sent Event.
Representation of a Server-Sent Event.
data which may be empty or span multiple lines
optional event type, must not contain \n or \r
event id, must not contain \n or \r
the reconnection time in milliseconds.
View from A
to ServerSentEvent.
View from A
to ServerSentEvent.
(Since version 1.1.0) See deprecation of EventPublisher
Importing EventStreamMarshalling.toResponseMarshaller lets an akka.stream.scaladsl.Source
of
ServerSentEvents be marshallable to an akka.http.model.HttpResponse
.
Importing EventStreamMarshalling.toResponseMarshaller lets an akka.stream.scaladsl.Source
of
ServerSentEvents be marshallable to an akka.http.model.HttpResponse
.
: An implicit Attention
scala.concurrent.ExecutionContext
has to be in scope!
Importing EventStreamUnmarshalling.fromEntityUnmarshaller lets an akka.http.model.HttpEntity
with a text/event-stream
media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent]
.
Importing EventStreamUnmarshalling.fromEntityUnmarshaller lets an akka.http.model.HttpEntity
with a text/event-stream
media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent]
.
: An implicit Attention
scala.concurrent.ExecutionContext
has to be in scope!
Media types for Server-Sent Events.
Connect a Source[ServerSentEvents]
to a with-heartbeats flow to merge it with periodic heartbeats.