$.couch.db.changes

$.couch.db.changes provides an API for subscribing to the changes feed
var $changes = $.couch.db("mydatabase").changes();
$changes.onChange = function (data) {
   ... process data ...
}
$changes.stop();

Methods

$.couch.db.changes.onChange(fun)
Add a listener callback

Parameters:

{Function} fun Callback function to run when notified of changes.
docs for /db/_changes

$.couch.db.changes.stop()
Stop subscribing to the changes feed