Packages

object ServerSentEvent extends Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerSentEvent
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply(data: String, retry: Int): ServerSentEvent

    Creates a ServerSentEvent.

    Creates a ServerSentEvent.

    data

    data, may span multiple lines

    retry

    reconnection delay in milliseconds

  2. 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

  3. 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

  4. val heartbeat: ServerSentEvent

    A ServerSentEvent with empty data which can be used as a heartbeat.