> 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/connecting-and-disconnecting/callback_disconnectfromserver.md).

# callback\_DisconnectFromServer()

After disconnecting from your server the callback function **callback\_DisconnectFromServer()** 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/tSaIcUTZFqRBuIJjaOmG" alt=""><figcaption></figcaption></figure>

* Here I’ve just done a show\_message so the user is shown a dialog box with that message.&#x20;
* You can use this to show a Game Over message and redirect the player to a Main Menu
