Indicates whether the client is connected to the server or not.

Namespace: Sfs2X
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.0)

Syntax

C#
public bool IsConnected { get; }

Property Value

Type: Boolean

Examples

The following example checks the connection status:
 Copy imageCopy
Console.WriteLine("Am I connected? " + sfs.IsConnected);                        // .Net / Unity
System.Diagnostics.Debug.WriteLine("Am I connected? " + sfs.IsConnected);       // Windows Universal

See Also