// Client code import ZongJi from './index.js'; const zongji = new ZongJi({ host : 'localhost', user : 'zongji', password : 'zongji', // debug: true }); zongji.on('binlog', function(evt) { evt.dump(); }); zongji.start({ includeEvents: ['tablemap', 'writerows', 'updaterows', 'deleterows'] }); process.on('SIGINT', function() { console.log('Got SIGINT.'); zongji.stop(); process.exit(); });