LoomRoomHost
constructor(loom: Loom, pattern: Pattern, deviceKeyStore: DeviceKeyStore, admission: HostAdmission, clock: () -> Instant = { Clock.System.now() }, heartbeatConfig: HeartbeatConfig = HeartbeatConfig())
Parameters
loom
the Loom to host over.
pattern
the session Pattern (session name) to advertise.
deviceKeyStore
this device's key store, handed to the SeamRoomFactory the host builds. Required: see SeamRoomFactory for why, and what to pass.
admission
decides who the hosted room lets in: see RoomFactory.host.
clock
time source for partition detection; defaults to wall-clock kotlin.time.Clock.System. Inject a virtual clock in tests.
heartbeatConfig
partition-detection timing.