ClientFrame

data class ClientFrame(val t: String, val d: JsonElement? = null)

A frame the SDK sends: {t, d, id?, v: 1}.

Constructors

Link copied to clipboard
constructor(t: String, d: JsonElement? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val d: JsonElement? = null

Payload.

Link copied to clipboard
val t: String

Frame type.

Functions

Link copied to clipboard
fun toJson(id: String? = null, version: Int = PROTOCOL_VERSION): JsonObject

The wire shape with the protocol version and an optional request id.