Skip to content

db.syncable.on('statusChanged')

David Fahlander edited this page Dec 20, 2016 · 5 revisions

Event that triggers when status is changed

Syntax

Sample

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

*/
Clone this wiki locally