respondEntry

suspend fun respondEntry(participantId: String, decision: EntryDecision)

Lets a waiting participant in, or turns them away.

Answers a request delivered on RoomEventListener.onEntryRequested; RoomEventListener.onEntryResponded reports which way it went.

Parameters

participantId

the waiting participant's id from RoomEventListener.onEntryRequested.

decision

whether to let them in.

Throws

code 4059 (RESPOND_ENTRY_FAILED) if the server refuses.