Skip to content

Instantly share code, notes, and snippets.

@koichik
Created November 1, 2010 15:12
Show Gist options
  • Save koichik/658319 to your computer and use it in GitHub Desktop.
Save koichik/658319 to your computer and use it in GitHub Desktop.
node-handlersocket example
var hs = require('../lib/node-handlersocket');
var con = hs.connect();
con.on('connect', function() {
con.openIndex('test', 'EMPLOYEE', 'PRIMARY', [ 'EMPLOYEE_ID', 'EMPLOYEE_NO', 'EMPLOYEE_NAME' ],
function(err, index) {
index.find('=', 1, function(err, results) {
console.log(results[0]);
con.end();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment