Skip to main content
Participant
January 21, 2010
Question

How do I stop random disconnects

  • January 21, 2010
  • 1 reply
  • 544 views

I have a FMS application that contains a chat room.  I'm finding that my ondisconnect method is firing randomly when I still haven't disconnected.  I've gathered from various other forums that this is a pretty common issue.  Is there a good way to avoid it?

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    January 22, 2010

    onDisconnect method gets called when some user close the

    netconnection. It also get called when some error occurs.

    So, basically you have to identify which thing is leading to onDisconnect.

    January 22, 2010

    An unexpected disconnect can happen for a lot of reasons, but in most cases, I find that it has to do with poor or unstable internet conditions on the client side. In the end, there's nothing you can do to prevent unexpected disconnects in all cases... you just need to design your client side application to handle the event and reconnect.