start

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

Begin hosting. Each admitted connection is surfaced to onRoom as a live Room. Suspends until the calling kotlinx.coroutines.CoroutineScope is cancelled; kotlinx.coroutines.CancellationException propagates unchanged.

Throws

if called while already running.