ControllableSeam

A Seam produced by ControllableLoom. Delivery is controlled by the parent loom; callers interact with it identically to any other Seam.

Properties

Link copied to clipboard
open val capability: StateFlow<TransportCapability>
Link copied to clipboard
open override val incoming: Flow<Swatch>
Link copied to clipboard
open val maxPayloadBytes: Int?
Link copied to clipboard
open override val peers: StateFlow<Set<PeerId>>

The loom's shared registry while this seam is live, and exactly { selfId } once it has closed (#2443, obligation from #1816). Handing the raw registry through failed both halves at once: a torn seam kept naming every remaining remote, and close removes this peer from that registry so its own id went missing too.

Link copied to clipboard
open val plies: StateFlow<Map<PlyId, SeamState>>
Link copied to clipboard
open override val selfId: PeerId
Link copied to clipboard
open override val state: StateFlow<SeamState>

Functions

Link copied to clipboard
open suspend override fun broadcast(payload: ByteArray)
Link copied to clipboard
open suspend override fun close(reason: CloseReason)
Link copied to clipboard
open suspend override fun sendTo(peer: PeerId, payload: ByteArray)