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 data: ByteString) : HarWebSocketMessage
Link copied to clipboard
@Serializable
data class Text(val direction: WebSocketDirection, val time: Instant, 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 time: Instant

The instant when the message was sent.