package akkasse
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
trait
EventStreamMarshalling
extends AnyRef
Mixing in this trait lets a source of ServerSentEvents be marshalled to a HttpResponse.
-
final
case class
ServerSentEvent
(data: Option[String] = None, eventType: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None) extends Product with Serializable
Representation of a Server-Sent Event.
Representation of a Server-Sent Event.
- data
data which may be empty or span multiple lines
- eventType
optional event type, must not contain \n or \r
- id
event id, must not contain \n or \r
- retry
the reconnection time in milliseconds
Value Members
-
object
EventStreamMarshalling
extends EventStreamMarshalling
Importing EventStreamMarshalling.trm lets a source of ServerSentEvents be marshalled to a
HttpResponse. -
object
MediaTypes
Media types for Server-Sent Events.
- object ServerSentEvent extends Serializable