javascript - Monitor status of pouchdb replicate -
if user loses internet or server goes offline, how can notifiy user live sync stopped?
var localdb = new pouchdb('localdb') var remotedb = new pouchdb('http://localhost:5984/xyz'); localdb.replicate.to(remotedb, {live: true}); localdb.replicate.from(remotedb, {live: true});
solved on irc, in case anyone's curious, db.replicate(...).on('error')
seemed missing key.
Comments
Post a Comment