Skip to main content
This topic has been closed for replies.

1 reply

April 4, 2012

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...

April 4, 2012

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.

April 4, 2012

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.