> 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/showallrooms-and-callback_showallrooms.md).

# ShowAllRooms() and callback\_ShowAllRooms()

## Description

This function scans your server for all rooms, including private rooms with just 1 client there and returns that as an array of strings in the callback.

#### Syntax

```
ShowAllRooms()
```

#### Returns

```
N/A
```

## Where do I get the final array of rooms?

After a successful scan on your server the callback function **callback\_ShowAllRooms()** is called. So under Scripts/Rocket Networking/Callback Functions , you can edit this to do whatever you want…

### Example Implementation of callback

<figure><img src="/files/RB4lJA5opvznxtzf57Fy" alt=""><figcaption></figcaption></figure>

* Here I’ve just done a show\_message so the user is shown a dialog box with that message but you get the idea

<figure><img src="/files/0HMRgCvlwtCP8MABQZvz" alt=""><figcaption></figcaption></figure>

* The 1 at the beginning means true , so it does return an array and that array in my case is shown.
* This means there are 2 rooms “7” and “9” containing their own clients and there are also 2 rooms called “moon” and “public”
