Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/dbchanges', function (req, res) {
- this.couchdbEvents = new CouchdbChangeEvents({
- lastEventId : seq,
- database: 'lookupfetchtest',
- host: '192.168.50.555',
- port:'5984',
- user: 'prabu',
- password: 'prabu',
- protocol : 'http',
- view: "listener_filter/listener_filter",
- limit: 1
- });
- this.couchdbEvents.on('data', (data) => {
- console.log('===========> data', data);
- seq = data['seq']
- })})
Add Comment
Please, Sign In to add comment