ShowAllRooms()

Type
Function

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.

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

image
  • Here I’ve just done a show_message so the user is shown a dialog box with that message but you get the idea
image
  • 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”