> 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/callback_leaveroom.md).

# callback\_LeaveRoom()

After a successful connection/joining your server the callback function **callback\_LeaveRoom()** 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/ijMRtrMMMqLAsaZzPQMP" 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
