628e3a30ca
Extend `PersistedModel.replicate` to pass the newly created checkpoints as the third callback argument. The typical usage of these values is to pass them as the `since` argument of the next `replicate()` call. global.since = -1; function sync(cb) { LocalModel.replicate( since, RemoteModel, function(err, conflicts, cps) if (err) return cb(err); if (!conflicts.length) { since = cps; return cb(); } // resolve conflicts and try again }); } |
||
---|---|---|
.. | ||
connectors | ||
access-context.js | ||
application.js | ||
browser-express.js | ||
builtin-models.js | ||
express-middleware.js | ||
loopback.js | ||
model.js | ||
persisted-model.js | ||
registry.js | ||
runtime.js | ||
server-app.js |