0 Replies Latest reply on Jan 18, 2007 9:26 AM by eshear

    XMLSocket onClose event is unreliable

      I use XMLSocket in my application and I have connection management code that automatically reconnects if onClose is called. However, I've found that often (especially if the connection is open for a long time) the onClose event isn't called. What causes onClose to be called? Is there anyway to do one of the following:

      - Reconnect in such a way that nothing will happen if I'm already connected? (Just calling .connect again seems to disconnect/reconnect me, which is not what I want)
      - Check to see if the XMLSocket is connnected?
      - More reliably receive onClose events?