RemoteClientState

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)(source)

Constructors

Link copied to clipboard
constructor(id: String, clientConnection: ClientConnection, eventHandlers: MutableMap<Int, (JsonElement) -> Unit> = HashMap(), onCloseHandlers: ConcurrentHashMap<Int, () -> Unit> = ConcurrentHashMap(), debugTokens: MutableMap<String, DebugInfo> = HashMap(), lastModified: Instant = Instant.now(), onMessageFunction: (data: JsonElement?) -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val eventHandlers: MutableMap<Int, (JsonElement) -> Unit>
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var onMessageFunction: (data: JsonElement?) -> Unit?

Functions

Link copied to clipboard
fun addCloseHandler(handler: () -> Unit): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard