ktor-http-cio / io.ktor.http.cio.websocket / Frame / Pong

Pong

class Pong : Frame

Represents a low-level pong frame. Should be sent in reply to a Ping frame. Usually there is no need to send/handle it unless you have a RAW web socket session.

Constructors

<init>

Pong(buffer: ByteBuffer)
Pong(packet: ByteReadPacket)Pong(buffer: ByteBuffer, disposableHandle: DisposableHandle)

Represents a low-level pong frame. Should be sent in reply to a Ping frame. Usually there is no need to send/handle it unless you have a RAW web socket session.

Inherited Properties

buffer

val buffer: ByteBuffer
  • a frame content or fragment content

disposableHandle

val disposableHandle: DisposableHandle

could be invoked when the frame is processed

fin

val fin: Boolean

is it final fragment, should be always true for control frames and if no fragmentation is used

frameType

val frameType: FrameType

enum value

Inherited Functions

copy

fun copy(): Frame

Creates a frame copy

toString

open fun toString(): String