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

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

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -