connect()

Availability:

Flash Player 7, 8
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.connect(ip:String, port:Number)

Description:

Attempts to connect to the server.

Parameters:

ip     - the IP Address of the server
port   - the TCP port of the server (default = 9339)

Fires an onConnection event

Returns:

Nothing.

Example:

 smartFox.connect("127.0.0.1", 9339)

See also:

disconnect()