end

suspend fun end()

Ends the room for every participant. Whether your token may do this is the server's call; a refusal leaves the local participant in the room.

Events:

Code Example:

lifecycleScope.launch { room.end() }

See also

Throws

code 3035 (ERROR_ACTION_PERFORMED_BEFORE_ROOM_JOINED) if the room is not joined, code 3065 (ERROR_ROOM_RECONNECTING) while it is reconnecting, code 3057 (ERROR_END_ROOM_FAILED, carrying the server's reason) if the server refuses, or code 3079 (ERROR_OPERATION_TIMED_OUT) if it does not answer.