Dispatched when the connection with SmartFoxServer is closed (either from the client or from the server).

C# | Visual Basic | Visual C++ |
public delegate void OnConnectionLostDelegate()
Public Delegate Sub OnConnectionLostDelegate
public delegate void OnConnectionLostDelegate()

Version:
SmartFoxServer Basic / Pro

The following example shows how to handle a "connection lost" event.
CopyC#

SFSEvent.onConnectionLost += OnConnectionLost; public void OnConnectionLost() { Debug.WriteLine("Connection lost!"); // TODO: disable application interface }
