0.2.7 • Published 9 years ago

realtime-sync-storage v0.2.7

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

realtime-sync-storage

Cross-origin local storage realtime synchronizing.

Supported

  • IE(8+)
  • multi-site
  • Safari isn't supported

Install

Bower

bower install realtime-sync-storage --save

npm

npm install realtime-sync-storage --save

Usage

  • master source use
rsStorage(
    {
        //Single site is string, multi-site is array,the site's Synchronization URL of slave source(type String or Array)
        url:"http://othersite.com/src/otherSite/syncStorage.html",
        //Synchronization delay(type Number or Boolean),default:false
        delay:1000,
        //Whether bidirectional synchronization,default:false
        mutual:true,
        //Sync field, not set to all sync
        sync:['testA']
    },function(){
        //do something before each synchronization.
    },function(){
        //do something after each synchronization.
    }
);
  • slave source add 'src/otherSite/syncStorage.html' file.

License

This project is licensed under the MIT license.

0.2.7

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago