Get the current connection mode.


The current connection mode, expressed by one of the following constants: CONNECTION_MODE_DISCONNECTED (disconnected), CONNECTION_MODE_SOCKET (socket mode), CONNECTION_MODE_HTTP (http mode).

Since:
SmartFoxServer Pro v1.6.0
Version:
SmartFoxServer Pro

The following example shows how to check the current connection mode.
CopyC#

SFSEvent.onConnection += OnConnection; smartFox.Connect("127.0.0.1", 9339); public void OnConnection(bool success, string error) { Debug.WriteLine("Connection mode: " + smartFox.GetConnectionMode()); }
