Packages

c

spinoco.protocol.websocket

WebSocketFrame

case class WebSocketFrame(fin: Boolean, rsv: (Boolean, Boolean, Boolean), opcode: OpCode.Value, payload: ByteVector, mask: Option[Int]) extends Product with Serializable

RFC 6455 Websocket frame

fin

If true, this is final Frame

rsv

RSV._1 to RSV._3 bits

opcode

OpCode of this frame

payload

Payload data

mask

Masking bits for the payload (32 bits)

Source
WebSocketFrame.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebSocketFrame
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebSocketFrame(fin: Boolean, rsv: (Boolean, Boolean, Boolean), opcode: OpCode.Value, payload: ByteVector, mask: Option[Int])

    fin

    If true, this is final Frame

    rsv

    RSV._1 to RSV._3 bits

    opcode

    OpCode of this frame

    payload

    Payload data

    mask

    Masking bits for the payload (32 bits)

Value Members

  1. val fin: Boolean
  2. val mask: Option[Int]
  3. val opcode: OpCode.Value
  4. val payload: ByteVector
  5. val rsv: (Boolean, Boolean, Boolean)