clientLoom

fun clientLoom(peerId: PeerId, random: Random, principal: Principal? = null): Loom

A client Loom over one shared in-memory link. Multiplexes each hosted/joined room name onto its own channel (via MuxClientLoom), so it plugs straight into SeamRoomFactory.

host(pattern) and join(tag) route by the rendezvous session name, which must match a server room's Pattern.sessionName.

Parameters

peerId

this client's identity.

random

seeded Random for this client's mesh-seam nonce generation — pass a distinct seed per client.

principal

optional host-verified Principal attested onto this client's server-end connection (see clientSeam). Defaults to null.