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.

  • broadcast/sendTo delegate to FakeRoom.broadcast/sendTo with raw payloads (no channel framing added — the Fake is not a protocol layer).

  • state forwards _seamState.

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

Constructors

Link copied to clipboard
constructor(id: String)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
open override val incoming: Flow<Swatch>
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 override fun sendTo(peer: PeerId, payload: ByteArray)