LeaveRoom()

Description

This function removes your client from the room it is in to your private room with the same name/id as your client id. So if your client id is 48 you are put into the room with id “48”. Nobody else can join this room so you are “alone”.

📌 This function isn’t exactly “leave room” because you still are technically in a room but no one else has access to this room so it is the equivalent of being in no room.

Syntax

LeaveRoom();

Returns

N/A

How do I know I’ve left room succesfully?

After sucessfully leaving a non numeric room and joining your private room, the callback function callback_LeaveRoom() is called.

Last updated