Host

data class Host(val admission: HostAdmission, val roomId: RoomId? = null) : AdoptRole

Host the room: this peer admits the others.

Constructors

Link copied to clipboard
constructor(admission: HostAdmission, roomId: RoomId? = null)

Properties

Link copied to clipboard

Decides every newcomer the room admits: see HostAdmission.

Link copied to clipboard

This room's identity (Room.roomId). Null, the default, mints a fresh one per adopt, which is what stops two rooms one device adopts in a row from colliding (#1594). Supply it when the identity is decided outside kuilt: a lobby code, an invite link, a game id.