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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -