# 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="https://1224219250-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYO9I4EKmgDF783aI7J4%2Fuploads%2FHn9oz30btanUI2Kg6Gcj%2Fimage.png?alt=media&#x26;token=b1eb3df2-9aab-462c-922f-b98e2674bb36" 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
