Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support of Server-Sent Events protocol to db changes API.
This patch add support for the new specification of w3c by adding a new feed type named `eventsource`: http://www.w3.org/TR/2009/WD-eventsource-20090423/ ex: $ curl 'http://127.0.0.1:5984/testdb/_changes?feed=eventsource&heartbeat=true&timeout=10000' data: {"seq":1,"id":"test","changes":[{"rev":"1-967a00dff5e02add41819138abb3284d"}]} id: 1 data: {"seq":2,"id":"test1","changes":[{"rev":"1-967a00dff5e02add41819138abb3284d"}]} id: 2
- Loading branch information
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I wonder whether we should start to use atoms here, instead of strings. Strings seem error prone to me.