Packages

final case class ServerSentEvent(data: String, eventType: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None) extends javadsl.model.sse.ServerSentEvent with Product with Serializable

Representation of a server-sent event. According to the specification, an empty data field designates an event which is to be ignored which is useful for heartbeats.

data

data, may span multiple lines

eventType

optional type, must not contain \n or \r

id

optional id, must not contain \n or \r

retry

optional reconnection delay in milliseconds

Source
ServerSentEvent.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerSentEvent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ServerSentEvent
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ServerSentEvent(data: String, eventType: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None)

    data

    data, may span multiple lines

    eventType

    optional type, must not contain \n or \r

    id

    optional id, must not contain \n or \r

    retry

    optional reconnection delay in milliseconds

Value Members

  1. val data: String
  2. val eventType: Option[String]
  3. def getData(): String

    Data, may span multiple lines.

    Data, may span multiple lines.

    Definition Classes
    ServerSentEventServerSentEvent
  4. def getEventType(): Optional[String]

    Optional type, must not contain \n or \r.

    Optional type, must not contain \n or \r.

    Definition Classes
    ServerSentEventServerSentEvent
  5. def getId(): Optional[String]

    Optional id, must not contain \n or \r.

    Optional id, must not contain \n or \r.

    Definition Classes
    ServerSentEventServerSentEvent
  6. def getRetry(): OptionalInt

    Optional reconnection delay in milliseconds.

    Optional reconnection delay in milliseconds.

    Definition Classes
    ServerSentEventServerSentEvent
  7. val id: Option[String]
  8. val retry: Option[Int]