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.
- 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
- Alphabetic
- By Inheritance
- ServerSentEvent
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ServerSentEvent(data: Option[String] = None, eventType: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None)
- 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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val data: Option[String]
-
def
encode: ByteString
Encodes this Server-Sent Event to an
akka.util.ByteStringaccording to the SSE specification.Encodes this Server-Sent Event to an
akka.util.ByteStringaccording to the SSE specification.- returns
message converted to UTF-8 encoded
akka.util.ByteString
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val eventType: Option[String]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val id: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val retry: Option[Int]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Converts to a
java.lang.Stringaccording to the SSE specification.Converts to a
java.lang.Stringaccording to the SSE specification.- returns
message converted to
java.lang.String
- Definition Classes
- ServerSentEvent → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )