Binary

@Serializable
data class Binary(val direction: WebSocketDirection, val time: Instant, val data: ByteString) : HarWebSocketMessage(source)

Constructors

Link copied to clipboard
constructor(direction: WebSocketDirection, time: Instant, data: ByteString)

Properties

Link copied to clipboard
@Serializable(with = ByteStringAsBase64StringSerializer::class)
val data: ByteString

The binary payload of this message.

Link copied to clipboard
open override val direction: WebSocketDirection

Which way the message was sent on the web socket.

Link copied to clipboard
@Serializable(with = InstantAsDoubleSecondsSerializer::class)
open override val time: Instant

The instant when the message was sent.