orbitaloop/WebSqlSync

saveBandwidth

Closed this issue · 2 comments

Hi Samuel,

To get it working, I changed the order of the saveBandwidth parameter as follow on line 112:

syncNow: function(saveBandwidth, callBackProgress, callBackEndSync) {

and I call it like this:
DBSYNC.syncNow(saveBandwidth, callBackProgress, function(result) {

Note: Your README should be updated to include the saveBandwidth parameter.

For your information, in my webSqlApp, I've been able to do a download sync from one MySQL table. My project progress. :-)

Hi,
I don't understand why you would want to change the order of parameters. It's an optional parameter, you can omit it.
Cheers,

Sam

And you can call it like that :
DBSYNC.syncNow(callBackSyncProgress, function(result) {
if (result.syncOK === true) {
//Synchronized successfully
}
}, saveBandwidth);