Skip to content

Connector

Screenshot

The Connector example shows how to setup and use the SmartFox client API object, establish a connection to the server and login.

The example consists of a single HTML page containing two sections representing the initial login view and a generic main view, acting as a placeholder for what comes after a successful login. On the login view the user can enter their name and hit the button to connect to SmartFoxServer and execute the login process.

The example features a single JavaScript module. A number of constants declared at the top of the script allow configuring the connection parameters and API logging behavior.

Source code


The writing of this tutorial is still in progress. We apologize for the inconvenience.