RemoteServerSession

class RemoteServerSession(val identity: Long, title: ProjectionValue, supportedTypes: Set<ProjectionType>, limits: RemoteLimits = RemoteLimits(), send: (RemoteMessage) -> Unit, pausesGame: Boolean = false, eventSession: UiSession? = null, controller: RuntimeUiController? = null, settings: RemoteUiSettings = RemoteUiSettings(), content: () -> Element) : AutoCloseable(source)

One authoritative screen bound by its transport owner to one authenticated connection. All calls run under the construction execution owner; source callbacks remain owned by the shared core session. Only the current tree and current action table are retained, and terminal cleanup releases both.

Constructors

Link copied to clipboard
constructor(identity: Long, title: ProjectionValue, supportedTypes: Set<ProjectionType>, limits: RemoteLimits = RemoteLimits(), send: (RemoteMessage) -> Unit, pausesGame: Boolean = false, eventSession: UiSession? = null, controller: RuntimeUiController? = null, settings: RemoteUiSettings = RemoteUiSettings(), content: () -> Element)

Properties

Link copied to clipboard

Largest revision the authenticated client has confirmed installing, or zero before its first confirmation. A confirmation does not establish that native rendering or human observation has occurred.

Link copied to clipboard
Link copied to clipboard

Current retained node count for the owning connection's aggregate budget.

Link copied to clipboard

Exact component, modifier, and nested behavior schemas required by the currently committed screen. The transport owner can withdraw extension ownership and close affected screens before unloading its plugin.

Link copied to clipboard
Link copied to clipboard

Receiver for authenticated events; a transport owner may supply its public facade.

Link copied to clipboard

Whether current declarations depend on the native container generation.

Functions

Link copied to clipboard

Receives a request sequenced by the transport's owning public session.

Link copied to clipboard
open override fun close()

fun close(reason: RemoteFailure, notifyPeer: Boolean = true)

Ends ownership and optionally notifies the peer; notification failure cannot skip cleanup.

Link copied to clipboard
fun receive(message: RemoteMessage)

Accepts a typed action or declaration acknowledgement from this session's authenticated connection. Future or cross-session acknowledgements fail the session; duplicates and older confirmations are harmless.

Validates an ordered peer action before invoking it through the core input boundary. Duplicate or retired endpoints never execute callbacks; their sequences are still acknowledged.

Link copied to clipboard

Sends the last committed complete snapshot without replaying any operations.

Link copied to clipboard
fun tick()

Attaches once, commits the declaration cutoff, and sends an initial snapshot or changed records.