Click or drag to resize

SmartFoxIsConnected Property

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

Namespace:  Sfs2X
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public bool IsConnected { get; }

Property Value

Type: Boolean
Examples
The following example checks the connection status:
Console.WriteLine("Am I connected? " + sfs.IsConnected);                        // .Net / Unity
System.Diagnostics.Debug.WriteLine("Am I connected? " + sfs.IsConnected);       // UWP
See Also