Hey guys, I had a quick question that hopefully someone can
help me with.
I have a Flex app that connects to a socket server and uses
it to send/receive all the data. Whenever I run the Flex app
locally on my machine after building it in Flex builder it runs
amazing. I can also run it as an AIR app and it works fine. As soon
as I click connect it connects to the socket server and everything
When I upload it to my web server, however, it doesn't work
right. It takes somewhere around 5-10 seconds each time to connect
to the socket server and a lot of the data doesn't pass correctly.
This doesn't seem to make much sense to me because I thought that
it was simply downloading the SWF file to the local computer and
running it. Is the data doing something funky because it's hosted
on a web server?
I'm sorry to bump this so quick, but I've been looking for
the answer and I'm in a semi-hurry to find the solution. Is there
some kind of cross-domain policy I have to set in order to avoid
The socket server is at the same place in both cases ? If it
was a cross-domain policy it should not work at all.
May be your socket code is not correct. Most of the time when
the socket connection is local all data is readden in only one call
to SOCKET_DATA event. If the socket connection is not local then
you should have several calls to SOCKET_DATA event for one message.