CouchTAP
Install
npm install couchtap
Introduction
This is a CouchBase TAP client implementation for node.js. This is a WIP, full javascript implementation.
The TAP protocol allows you to be notified when events occurs in your couchbase buckets.
Here is a basic exemple:
var tap = var wire = name: 'test1' host: 'vm-ubuntu' bucket: 'test' password: 'password';wirewire;
Or if you want the connection and mode setup to happen automagically:
var tap = var wire = name: 'test1' connect: true host: 'vm-ubuntu' bucket: 'test' password: 'password' mode: dump : true // Dump all documents ;
Then listen to events :
wire wire wire wire
Documentation
There is none at the moment, just refer to the couchbase wiki page on TAP Protocol
TODO
- Handle vBucket, Checkpoint responses
- vBucket related features testing
- Write tests
- Write documentation
- A lot of other stuffs