Package-level declarations

Types

Link copied to clipboard
@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)
Link copied to clipboard
sealed class ClientConnection
Link copied to clipboard
@Serializable
data class FunctionCall(val debugToken: String? = null, val jsId: Int? = null, val js: String? = null, val parameters: String? = null, val callbackId: Int? = null, val arguments: List<JsonElement> = emptyList())
Link copied to clipboard
data class HttpRequestInfo(val request: ApplicationRequest)
Link copied to clipboard
data class RemoteClientState(val id: String, var clientConnection: ClientConnection, val eventHandlers: MutableMap<Int, (JsonElement) -> Unit> = HashMap(), val onCloseHandlers: ConcurrentHashMap<Int, () -> Unit> = ConcurrentHashMap(), val debugTokens: MutableMap<String, DebugInfo> = HashMap(), var lastModified: Instant = Instant.now(), var onMessageFunction: (data: JsonElement?) -> Unit? = null)
Link copied to clipboard
@Serializable
@SerialName(value = "Server2ClientMessage")
data class Server2ClientMessage(val yourId: String, val functionCalls: List<FunctionCall>)

Server2client message