FakeChannelSeam

inner class FakeChannelSeam(val id: String) : Seam

A Seam view returned by FakeRoom.channel.

  • peers reflects the admitted roster (+ self) via _rosterPeers.

  • incoming is driven by test-driver deliver calls, buffered via a bounded Spool (policy from FakeRoom.channelPolicy).

  • broadcast/sendTo record arbitrary payloads through the room's private recording helpers, bypassing raw-send prefix refusal (no channel framing added — the fake is not a protocol layer).

  • state forwards the room's seam state, which tearSeam and leave tear.

  • close is a no-op — the FakeRoom owns the lifecycle.

Constructors

Link copied to clipboard
constructor(id: String)

Properties

Link copied to clipboard
open val capability: StateFlow<TransportCapability>
Link copied to clipboard
val id: String
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>>
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)

No-op — FakeRoom owns the lifecycle.

Link copied to clipboard
suspend fun deliver(sender: PeerId, payload: ByteArray)

Push payload from sender into this channel's incoming.

Link copied to clipboard
open suspend fun flush(timeout: Duration): FlushOutcome
Link copied to clipboard
open suspend override fun sendTo(peer: PeerId, payload: ByteArray)

Refused for selfId (#2428), then recorded. The raw Room.sendTo contract carries no such refusal — the real us.tractat.kuilt.session.RoomChannel is guarded at exactly this position for exactly that reason, and a fake that accepts what the real channel refuses is how a consumer test goes green on a call production would reject.