> For the complete documentation index, see [llms.txt](https://rocket-networking.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rocket-networking.gitbook.io/docs/rocket-networking-code/rooms/leaveroom.md).

# 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.&#x20;
