Client2ServerMessage

@Serializable
data class Client2ServerMessage(val id: String, val hello: Boolean? = true, val error: Client2ServerMessage.ErrorMessage? = null, val callback: Client2ServerMessage.C2SCallback? = null, val onMessageData: JsonElement? = null, val keepalive: Boolean = false)(source)

Constructors

Link copied to clipboard
constructor(id: String, hello: Boolean? = true, error: Client2ServerMessage.ErrorMessage? = null, callback: Client2ServerMessage.C2SCallback? = null, onMessageData: JsonElement? = null, keepalive: Boolean = false)

Types

Link copied to clipboard
@Serializable
data class C2SCallback(val callbackId: Int, val data: JsonElement = JsonNull)
Link copied to clipboard
@Serializable
data class ErrorMessage(val debugToken: String, val error: Client2ServerMessage.ErrorMessage.Error)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val hello: Boolean? = true
Link copied to clipboard
val id: String
Link copied to clipboard
val keepalive: Boolean = false
Link copied to clipboard
val onMessageData: JsonElement? = null