object ServerSentEvent extends Serializable
- Source
- ServerSentEvent.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ServerSentEvent
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply(data: String, retry: Int): ServerSentEvent
Creates a ServerSentEvent.
Creates a ServerSentEvent.
- data
data, may span multiple lines
- retry
reconnection delay in milliseconds
- def apply(data: String, type: String, id: String): ServerSentEvent
Creates a ServerSentEvent.
Creates a ServerSentEvent.
- data
data, may span multiple lines
- type
type, must not contain \n or \r
- id
id, must not contain \n or \r
- def apply(data: String, type: String): ServerSentEvent
Creates a ServerSentEvent.
Creates a ServerSentEvent.
- data
data, may span multiple lines
- type
type, must not contain \n or \r
- val heartbeat: ServerSentEvent
A ServerSentEvent with empty data which can be used as a heartbeat.