MonoBehaviour.OnDisconnectedFromServer

function OnDisconnectedFromServer (mode : NetworkDisconnection) : void

Description

Called on the client when the connection was lost or you disconnected from the server.

JavaScript
    function OnDisconnectedFromServer (info : NetworkDisconnection) {
Debug.Log("Disconnected from server: " + info);
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnDisconnectedFromServer(NetworkDisconnection info) {
Debug.Log("Disconnected from server: " + info);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnDisconnectedFromServer(info as NetworkDisconnection):
Debug.Log(('Disconnected from server: ' + info))