pouch-stream-multi-sync
Sync several PouchDBs through a stream.
Supports reconnection, negotiation and authentication.
Install
$ npm install pouch-stream-multi-sync --save
Server
var PouchSync = ; var server = PouchSync; { if credentialstoken == 'some token' ; else ; }; // pipe server into and from duplex stream stream;
Client
Example of client using a websocket:
var websocket = ;var PouchSync = ; var db = 'todos';var client = PouchSync;var sync = client; client; { return ;}
API
TODO
License
ISC