start

suspend fun start(onRoom: suspend (Room) -> Unit)

Start hosting a room. Builds the Room via SeamRoomFactory.host, invokes onRoom once with the live room, then suspends until the calling scope is cancelled.

On cancellation, Room.leave is called with LeaveReason.Normal.

Throws

if called while already running.