Created
March 4, 2012 23:32
-
-
Save ozalexo/1975386 to your computer and use it in GitHub Desktop.
firebird: listen events
This file contains hidden or 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
| var drev = require('drev') | |
| , fb = require('firebird'); | |
| var conn = fb.createConnection(); | |
| conn.connectSync('nodejs:/opt/firebird/dbs/testdb.fdb', 'SYSDBA', 'masterkey', ''); | |
| conn.addFBevent("fbevent"); | |
| conn.on("fbevent",function(event,count){ | |
| console.log('GOT EVENT'); | |
| drev.emit('newevent', 'any text'); | |
| }); | |
| drev.on('newevent', function(msg){console.log('GOT DREV EVENT')}); | |
| function wait4ever () { | |
| process.nextTick(wait4ever); | |
| }; | |
| process.nextTick(wait4ever); | |
| drev.start(); |
Author
Not sure that you relly need to use such ancient package: https://www.npmjs.com/package/drev
It was published/updated more than 10 years ago.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, how can i install drev component?