An object that can be encoded as an element of an event stream.
Mixing in this trait lets a Source[EventStreamElement, A] be marshallable to a HttpResponse.
Mixing in this trait lets a HttpEntity with a text/event-stream media type be unmarshallable to a
Source[ServerSentEvent, Any].
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 a Source[EventStreamElement, A]
be marshallable to a HttpResponse.
Importing EventStreamUnmarshalling.fromEntityUnmarshaller lets a HttpEntity with a text/event-stream
media type be unmarshallable to a Source[ServerSentEvent, Any].
Media types for Server-Sent Events.