Establish a connection to SmartFoxServer.
The client usually gets connected to SmartFoxServer through a socket connection. In SmartFoxServer Pro, if a socket connection is not available and the smartConnect property is set to true, an http connection to the BlueBox module is attempted.
When a successful connection is established, the GetConnectionMode()()() can be used to check the current connection mode.
The client usually gets connected to SmartFoxServer through a socket connection. In SmartFoxServer Pro, if a socket connection is not available and the smartConnect property is set to true, an http connection to the BlueBox module is attempted.
When a successful connection is established, the GetConnectionMode()()() can be used to check the current connection mode.


Sends:
SFSEvent..::.OnConnectionDelegate
History:
SmartFoxServer Pro v1.6.0 - BlueBox connection attempt in case of socket connection not available.
Version:
SmartFoxServer Basic (except BlueBox connection) / Pro

The following example shows how to connect to SmartFoxServer.
CopyC#

smartFox.Connect("127.0.0.1", 9339);