-
1. Re: Client class
Visco Apr 4, 2012 4:30 AM (in response to Community Help)If I close the browser on client side, "application.onDisconnect" dispatch and FMS response is "false" for the ping() as it should, and manual saies.
My problem is the following:
If I unplug the internet cable on client side, on FMS server side the "application.onDisconnect" never dispatch, and the response in an interval is continually "true" for "client.ping()".
Is there any FMS information about this kind of loss of connection, or how can I detect this event?
Thanks in advance...
-
2. Re: Client class
JayCharles Apr 4, 2012 8:56 AM (in response to Visco)Short answer, there's no way to prevent this condition.
What you can do is set up a class on the server side that invokes a client side method (a method that returns a value) every N seconds. If the client doesn't respond within Y seconds, you can call Client.disconnect from the server side.
-
3. Re: Client class
Visco Apr 4, 2012 12:26 PM (in response to JayCharles)Thank you for your answer, that's what I exactly did, I didn't find better solution yet! I hope Adobe gonna fix this somehow.
-
4. Re: Client class
Heath Hunnicutt Oct 22, 2014 3:42 PM (in response to Visco)Visco, I understand this was written over 2 years ago, so I understand if you don't remember. When you were testing this, do you know what value AMS returned for the ping_rtt?

