Auto-reconnect when network is not available

Interested in how other xiff developers are dealing with the need to auto-reconnect when the network goes black.

We have a flex AIR app that uses xiff and it is easy enough to listen for the server actually disconnecting, but if the wireless goes blank for any period of time, a proper “disconnect” event never happens.

Any ideas?