Guest User

Untitled

a guest
Nov 13th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. router.get('/dbchanges', function (req, res) {
  2. this.couchdbEvents = new CouchdbChangeEvents({
  3. lastEventId : seq,
  4. database: 'lookupfetchtest',
  5. host: '192.168.50.555',
  6. port:'5984',
  7. user: 'prabu',
  8. password: 'prabu',
  9. protocol : 'http',
  10. view: "listener_filter/listener_filter",
  11. limit: 1
  12. });
  13.  
  14. this.couchdbEvents.on('data', (data) => {
  15. console.log('===========> data', data);
  16. seq = data['seq']
  17. })})
Add Comment
Please, Sign In to add comment