package akkasse
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- akkasse
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
EventStream = Source[ServerSentEvent, Any]
A source of ServerSentEvent.
-
trait
EventStreamMarshalling
extends AnyRef
Mixing in this trait lets an EventStream be marshallable 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 an EventStream be marshallable to a
HttpResponse. -
object
MediaTypes
Media types for Server-Sent Events.
- object ServerSentEvent extends Serializable