4 Replies Latest reply: Oct 22, 2014 3:42 PM by Heath Hunnicutt RSS

    Client class

    Community Help Community Member
        • 1. Re:  Client class
          Visco

          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 Community Member

            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 Community Member

              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 Community Member

                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?