FakeChannelSeam

inner class FakeChannelSeam(val id: String) : Seam

A Seam view returned by FakeRoom.channel.

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 override fun sendTo(peer: PeerId, payload: ByteArray)