HarWebSocketMessage

@Serializable(with = WebSocketMessageSerializer::class)
sealed class HarWebSocketMessage(source)

A web socket message record.

Inheritors

Types

Link copied to clipboard
@Serializable
data class Binary(val direction: WebSocketDirection, val time: Instant, val opcode: Int, val data: ByteString) : HarWebSocketMessage
Link copied to clipboard
@Serializable
data class Text(val direction: WebSocketDirection, val time: Instant, val opcode: Int, val data: String) : HarWebSocketMessage

Properties

Link copied to clipboard

Which way the message was sent on the web socket.

Link copied to clipboard
abstract val opcode: Int

The opcode of the websocket frame (1 for a text frame, 2 for a binary frame).

Link copied to clipboard
abstract val time: Instant

The instant when the message was sent.