SmartFoxServer Unity/.NET API
SFSEvent..::.OnConnectionLostDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnConnectionLostDelegate
Dispatched when the connection with SmartFoxServer is closed (either from the client or from the server).
Declaration Syntax
C#Visual BasicVisual C++
public delegate void OnConnectionLostDelegate()
Public Delegate Sub OnConnectionLostDelegate
public delegate void OnConnectionLostDelegate()
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to handle a "connection lost" event.
CopyC#
SFSEvent.onConnectionLost += OnConnectionLost;

public void OnConnectionLost()
{
    Trace.WriteLine("Connection lost!");

    // TODO: disable application interface
}
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)