WebSocketFrame

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class Binary(payload: Array[Byte], finalFragment: Boolean, rsv: Option[Int]) extends Data[Array[Byte]]

A binary frame with fragmentation or extension bits.

A binary frame with fragmentation or extension bits.

Value parameters:
finalFragment

flag indicating whether or not this is the last fragment

payload

a binary payload

rsv

optional extension bits

case class Close(statusCode: Int, reasonText: String) extends Control
sealed trait Control extends WebSocketFrame
sealed trait Data[T] extends WebSocketFrame
case class Ping(payload: Array[Byte]) extends Control
case class Pong(payload: Array[Byte]) extends Control
case class Text(payload: String, finalFragment: Boolean, rsv: Option[Int]) extends Data[String]

A text frame with fragmentation or extension bits.

A text frame with fragmentation or extension bits.

Value parameters:
finalFragment

flag indicating whether or not this is the final fragment

payload

a text fragment.

rsv

optional extension bits

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def binary(payload: Array[Byte]): Binary
def ping: Ping
def pong: Pong
def text(payload: String): Text