-
-
Notifications
You must be signed in to change notification settings - Fork 666
db.syncable.on('statusChanged')
David Fahlander edited this page Dec 20, 2016
·
5 revisions
Event that triggers when status is changed
db.syncable.on('statusChanged', (status, url) => {
console.log (`Url ${url} is now ${Dexie.Syncable.StatusTexts[status]}`);
});
/* Sample console output:
Url https://remote.server.com/syncRoute is now OFFLINE
Url https://remote.server.com/syncRoute is now CONNECTING
Url https://remote.server.com/syncRoute is now CONNECTED
*/
Dexie.js - minimalistic and bullet proof indexedDB library