RelaySession

Serialized relay protocol state machine; native code owns socket lifecycle.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Complete an authentication phase and replay queued operations.

Link copied to clipboard

Permanently cancel the session and request transport closure.

Link copied to clipboard
open override fun close()

Release native state; use cancel first when a transport is active.

Link copied to clipboard

Close and forget one subscription.

Link copied to clipboard

Confirm that one received event was durably committed by the host.

Link copied to clipboard

Begin a connection attempt and request transport creation.

Link copied to clipboard

Remove at most limit queued outbound text frames.

Link copied to clipboard

Queue one bounded batch of signed events for delivery tracking.

Link copied to clipboard

Consume one relay text frame and return required platform actions.

Link copied to clipboard

Read one redacted diagnostic snapshot.

Link copied to clipboard
fun subscribe(id: String, filtersJson: List<String>)

Add or replace a subscription using canonical filter JSON values.

Link copied to clipboard

Notify the state machine that the platform transport is connected.

Link copied to clipboard

Notify the session of transport loss and calculate recovery actions.