Pong

expect class Pong(data: ByteArray, disposableHandle: DisposableHandle = NonDisposableHandle) : 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 WebSocket session.

actual class Pong(val data: ByteArray, val disposableHandle: DisposableHandle) : 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.

actual class Pong(val data: ByteArray, val disposableHandle: DisposableHandle) : 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.

actual class Pong(val data: ByteArray, val disposableHandle: DisposableHandle) : 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

Link copied to clipboard
expect constructor(packet: ByteReadPacket)
expect constructor(data: ByteArray, disposableHandle: DisposableHandle = NonDisposableHandle)
actual constructor(packet: ByteReadPacket)
actual constructor(data: ByteArray, disposableHandle: DisposableHandle)
constructor(buffer: ByteBuffer, disposableHandle: DisposableHandle = NonDisposableHandle)
constructor(buffer: ByteBuffer)
actual constructor(packet: ByteReadPacket)
actual constructor(data: ByteArray, disposableHandle: DisposableHandle)
actual constructor(packet: ByteReadPacket)
actual constructor(data: ByteArray, disposableHandle: DisposableHandle)

Properties

Link copied to clipboard

Frame content

Link copied to clipboard
expect val data: ByteArray
actual val data: ByteArray
actual val data: ByteArray
actual val data: ByteArray
Link copied to clipboard
expect val disposableHandle: DisposableHandle

could be invoked when the frame is processed

actual val disposableHandle: DisposableHandle

could be invoked when the frame is processed

actual val disposableHandle: DisposableHandle

could be invoked when the frame is processed

actual val disposableHandle: DisposableHandle

could be invoked when the frame is processed

Link copied to clipboard
expect val fin: Boolean

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

actual val fin: Boolean

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

actual val fin: Boolean

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

actual val fin: Boolean

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

Link copied to clipboard
expect val frameType: FrameType

enum value

actual val frameType: FrameType

enum value

actual val frameType: FrameType

enum value

actual val frameType: FrameType

enum value

Link copied to clipboard
expect val rsv1: Boolean

First extension bit.

actual val rsv1: Boolean
actual val rsv1: Boolean
actual val rsv1: Boolean
Link copied to clipboard
expect val rsv2: Boolean

Second extension bit.

actual val rsv2: Boolean
actual val rsv2: Boolean
actual val rsv2: Boolean
Link copied to clipboard
expect val rsv3: Boolean

Third extension bit.

actual val rsv3: Boolean
actual val rsv3: Boolean
actual val rsv3: Boolean

Functions

Link copied to clipboard
expect fun copy(): Frame

Creates a frame copy.

actual fun copy(): Frame

Creates a frame copy.

actual fun copy(): Frame

Creates a frame copy.

actual fun copy(): Frame

Creates a frame copy.

Link copied to clipboard

Reads binary content from the frame. For fragmented frames only returns this fragment.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String