![]() |
![]()
| ![]() |
![]()
NAMEAnyEvent::CouchDB::Stream - Watch changes from a CouchDB database. SYNOPSISuse AnyEvent::CouchDB::Stream; my $listener = AnyEvent::CouchDB::Stream->new( url => 'http://localhost:5984', database => 'test', on_change => sub { my $change = shift; warn "document $change->{_id} updated"; }, on_keepalive => sub { warn "ping\n"; }, timeout => 1, ); DESCRIPTIONAnyEvent::CouchDB::Stream is an interface to the CouchDB changes database API. OPTIONS
AUTHORfranck cuny <franck.cuny@linkfluence.net> SEE ALSOAnyEvent::HTTP, AnyEvent::CouchDB, AnyEvent::Twitter::Stream, <http://books.couchdb.org/relax/reference/change-notifications> LICENSECopyright 2010 by Linkfluence <http://linkfluence.net> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|