Text

data class Text(val text: String) : FrameBody

Represents the body of a StompFrame that was received as a textual web socket frame.

Constructors

Link copied to clipboard
fun Text(utf8Bytes: ByteArray)
Link copied to clipboard
fun Text(text: String)

Properties

Link copied to clipboard
open override val bytes: ByteArray

The bytes of this frame body. For a text frame, the text is encoded as UTF-8.

Link copied to clipboard
val text: String

Sources

Link copied to clipboard