FrameType

enum class FrameType

Frame types enum

Enum Values

TEXT

Regular application level text frame

BINARY

Regular application level binary frame

CLOSE

Low level close frame type

PING

Low level ping frame type

PONG

Low level pong frame type

Properties

controlFrame

val controlFrame: Boolean

if this is control frame type

opcode

val opcode: Int
  • frame type id that is used to transport it

Companion Object Functions

get

operator fun get(opcode: Int): FrameType?

Find FrameType instance by numeric opcode