Hi have an php app in which i put some job via https://github.com/pda/pheanstalk/
$pheanstalk
->useTube('testtube')
->put(json_encode(array('hello' => 'mdjaman')));
then i want to use nodejs https://www.npmjs.com/package/fivebeans worker to process the job; unfornatedly i missed something in the great documentation of fivebeans Can someone point me to right track. Here my js file
var Beanworker = require('fivebeans').worker;
var options =
{
id: 'worker_4',
host: '0.0.0.0',
port: 13000,
handlers:
{
type: 'emitkeys'
},
ignoreDefault: true
}
var worker = new Beanworker(options);
worker.start(['testtube']);
worker.on('info', function(message) {
console.log('worker started with msg ' + message);
});
End up using another implementation nodestalker