requireRoom

fun requireRoom(passedRoom: Room? = null): Room

Returns the passedRoom or the currently provided RoomLocal.

Throws

if passedRoom is null and no RoomLocal is available (e.g. not inside a RoomScope).