WebSocketFrame

sttp.ws.WebSocketFrame$
See theWebSocketFrame companion trait

Attributes

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

Members list

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Data[Array[Byte]]
class Object
trait Matchable
class Any
Show all
case class Close(statusCode: Int, reasonText: String) extends Control

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Control
class Object
trait Matchable
class Any
Show all
sealed trait Control extends WebSocketFrame

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Close
class Ping
class Pong
sealed trait Data[T] extends WebSocketFrame

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Binary
class Text
case class Ping(payload: Array[Byte]) extends Control

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Control
class Object
trait Matchable
class Any
Show all
case class Pong(payload: Array[Byte]) extends Control

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Control
class Object
trait Matchable
class Any
Show all
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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Data[String]
class Object
trait Matchable
class Any
Show all

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

Value members

Concrete methods

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