WebSocketFrame

@Serializable
data class WebSocketFrame(val opcode: Double, val mask: Boolean, val payloadData: String)

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

Constructors

Link copied to clipboard
constructor(opcode: Double, mask: Boolean, payloadData: String)

Properties

Link copied to clipboard

WebSocket message mask.

Link copied to clipboard

WebSocket message opcode.

Link copied to clipboard

WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.