DisconnectFromServer()

Type
Function

Description

This function fully closes the websocket connection and you are disconnected from your server.

How do I know I’ve disconnected?

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

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