|
SmartFoxServer AJAX API is Google Web Toolkit (GWT) module that allows you to create cross-browser AJAX multi user applications using Java.
SmartFoxServer AJAX API requires the BlueBox installed and active.
NOTE: Please note the following:
-
Due to the Same Origin Policy (SOP) the SmartFoxServer AJAX API related JavaScript files and the BlueBox should be on the same domain name, protocol
and port (some browsers permit different port)
-
HTTP 1.1 requires browsers to limit the number of outgoing HTTP connections to two per domain/port.
So if you test the application loading multiple instances of the page in the same browser you may experience significant lag.
During test with Mozilla Firefox 2 and Internet Explorer 7 with three instances (the same browser instance and different tabs) of sfsChat
the lag was so big that making any test was almost impossible.
The reason is the same as what makes BlueBox so fast – when HTTP request is made it
doesn’t send response until there is some update to send or given time has expired. So for example when two instances wait for response
and third tries to login it cannot because the connections limit is reached and it needs to wait until one of the other instances receive response
and this may take in some cases about 20 seconds – as you can see this is really huge lag and with more instances it gets even worse.
Starting different instances of Mozilla Firefox does not fix the problem while starting multiple instances of Internet Explorer 7 solves the problem.
Maybe the best approach is to test the application on different browsers for example Mozilla Firefox, Internet Explorer, Safari and Opera.
This approach has one big advantage – you can test how your application looks and performs on the major browsers.
Of course other solutions are also possible – for example to make the tests on different computers
» Download and installation
Download the SmartFoxServer Ajax API here.
- Unzip the archive and follow the instructions provided.
- For any questions, feedback and bug reports use our support forum.
» Quick Start
You can find a video quick start guide here
.
|