Frame

play.sockjs.api.Frame
See theFrame companion class
object Frame

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Frame.type

Members list

Type members

Classlikes

final case class Close(code: Int, reason: String) extends Frame

Close frame. This frame is send to the browser every time the client asks for data on closed connection. This may happen multiple times. Close frame contains a code and a string explaining a reason of closure, like: c[3000,"Go away!"].

Close frame. This frame is send to the browser every time the client asks for data on closed connection. This may happen multiple times. Close frame contains a code and a string explaining a reason of closure, like: c[3000,"Go away!"].

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Frame
class Object
trait Matchable
class Any
Show all
object Close

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Close.type
case object CloseAbruptly extends Frame

Special frame to signal the underlying flow to close the connection abruptly. This frame doesn't contain any payload, an exception will be thrown if encode is called.

Special frame to signal the underlying flow to close the connection abruptly. This frame doesn't contain any payload, an exception will be thrown if encode is called.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Frame
class Object
trait Matchable
class Any
Show all
Self type
case class Text(data: Vector[String]) extends Frame

Encode messages to a SockJS message frame, it is an array of json encoded messages. For example: a["message1", "message2"].

Encode messages to a SockJS message frame, it is an array of json encoded messages. For example: a["message1", "message2"].

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Frame
class Object
trait Matchable
class Any
Show all
object Text

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Text.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror