commit | 006b2b77aea9866135805777a80d9b062ef9c390 | [log] [tgz] |
---|---|---|
author | Paul J. Davis <paul.joseph.davis@gmail.com> | Fri Jan 17 15:07:32 2014 -0800 |
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | Fri Jan 17 15:07:32 2014 -0800 |
tree | 1a2e7e4c68765680086472f5d8c3af6a30f0f7d2 | |
parent | a80c4d2bcffd36f4e44a015c23f753f889ef1090 [diff] |
Updated couch_dbupdates.app.src for CouchDB
couch_dbupdates
is a simple couchdb modules to receive databases events in couchdb node.
It's actually supported by all the refuge projects:
To get db events, do a GET to /_db_updates
.
You can pass an optional query parameters:
feed
The feed can be longpoll
(default) for longpolling, eventsource
for event stream or continuous
for continuous feed.timeout
: timeout before the longpolling connection close or when the heartbeat is emitted.heartbeat
: true, or false. an empty line is emittend when the timeout occurs to maintain the connection active.$ curl http://127.0.0.1:5984/_db_updates?feed=continuous {"type":"created","db_name":"testdb"} {"type":"updated","db_name":"testdb"} {"type":"deleted","db_name":"testdb"}