Close the current connection to SmartFoxServer.

C# | Visual Basic | Visual C++ |
public void Disconnect()
Public Sub Disconnect
public: void Disconnect()

Sends:
SFSEvent..::.OnConnectionLostDelegate
Version:
SmartFoxServer Basic / Pro

The following example shows how to disconnect from SmartFoxServer.
CopyC#

smartFox.Disconnect();