Hello everyone,
I'm using pouchdb to provide replication to tiddlywiki. Everything is working nicely, except replication status feedback and logging. Regarding information at a first instance I though that pouchdb just calls its subscribers with statuses of syncing,complete (all up to date) and paused (no connection,we will try later), but seems that it is not so simple. I'm logging all the statuses and seems that the "change" event is the one that provides more information, active is just one-second state when pouch starts to sync again and paused seems to be the natural state. Could someone provide me some guidelines? Should I show a OK with a back-tick to the user when pouch is on pause state? How can I detect offline status? The only thing close to it seems to be error.
And I'm not sure how to manage logging. Most of the times, there is an active cookie on the browser, but I can't know it before hand. Should I try to log into the server BEFORE activating the live sync? Should I do it even before creating the remote database instance?
I'm talking about live sync. Thanks in advance.