I've got some BlueBox problems.
Here is how I connect to the SmartFoxServer:
Code: Select all
sfs = new SmartFox();
sfs.useBlueBox = true;
sfs.connect("some-ip-adress", 9933);Problem arises when I deploy my application to the social network. When I leave 9933 port open - it works fine. When I close it and wait for the BlueBox to kick in - it doesn't.
Second thing that I've noticed - when I connect to the server from my machine the application almost instantly knows that the 9933 port is closed and tries to connect trough http (I immediately catch the CONNECTION_ATTEMPT_HTTP event). But when I start the application on the social network it takes 20 seconds to realize that it needs to fall back and use BlueBox (the same event is fired only after 20 seconds).
Any ideas why my application can't connect to BlueBox when is on the social network's server?
P.S. My server is a VPS and is not local to my machine. Both of the tests (from my machine and from social network's) are done over the internet.
P.P.S. I added a line to crossdomains.xml:
Code: Select all
<allow-access-from domain="*" to-ports="8080" />