Message

data class Message(val headers: StompMessageHeaders, val body: FrameBody?) : StompFrame

A MESSAGE frame is a server frame used to convey a message from a subscription to the client. A MESSAGE frame must be part of a subscription.

Constructors

Link copied to clipboard
fun Message(headers: StompMessageHeaders, body: FrameBody?)

Properties

Link copied to clipboard
open override val body: FrameBody?

The body of this STOMP frame.

Link copied to clipboard
val bodyAsText: String

The body of this frame as text.

Link copied to clipboard
val command: StompCommand

The command of this STOMP frame, which is the first word of the frame.

Link copied to clipboard
open override val headers: StompMessageHeaders

The headers of this STOMP frame.

Sources

Link copied to clipboard