You mention that there's 2 ways to synchronize: Constantly try and
synchronize, or allow the user to synchronize (thus saying "im going
offline").
Is the only way to detect that the user has gone offline in the middle
of using the application to constantly be doing XHR requests for
synchronization, and set timers to check if they come back in time?
Thanks
Joe Potenza
In practice, the user _generally_ are going to be either online or
offline, transitions aren't that frequent. It's just that the only
way to know at any given time is to try.
-scott
That was actually the approach I used for an early Apollo application
before they added an API to handle connectivity.
This does create a bit of a race situation whereby the user could
disconnect right after you recieve the Google request back. That won't
happen very often though.
-Todd
On Jun 1, 4:48 pm, shess <Scott.H...@gmail.com> wrote:
-scott