FrameBody

sealed class FrameBody(source)

Represents the body of a StompFrame.

If a STOMP frame was received as a binary web socket frame, its body will be a Binary body. If a STOMP frame was received as a textual web socket frame, its body will be a Text body.

Inheritors

Types

Link copied to clipboard
data class Binary(val bytes: ByteString) : FrameBody

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

Link copied to clipboard
data class Text(val text: String) : FrameBody

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

Properties

Link copied to clipboard
abstract val bytes: ByteString

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