FanoutHarness

class FanoutHarness(val serverLoom: Loom, connect: suspend (peerId: PeerId, random: Random) -> Seam)

Binds a server-fanout Loom under test to a way of connecting client Seams to it.

Parameters

connect

connect a fresh client with the given PeerId (seeded Random for any nonce generation) and return that client's Seam wired to serverLoom.

Constructors

Link copied to clipboard
constructor(serverLoom: Loom, connect: suspend (peerId: PeerId, random: Random) -> Seam)

Properties

Link copied to clipboard

the loom whose Loom.host returns per-room fanout Seams.

Functions

Link copied to clipboard
suspend fun connectClient(peerId: PeerId, random: Random): Seam

Connect a fresh client Seam wired to serverLoom.