We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var amqp = require('amqp') var connection = amqp.createConnection({ host:'127.0.0.1', post:5672, login:'test', password: '123', vhost: '/test' }) connection.on('error',function(err){ console.log('connection err : '+err); }) var queName = 'test_q3',exname='test_ex'; connection.on('ready',function(){ var ex = connection.exchange(${exname},{type:'fanout',durable:true,autoDelete:false}); connection.queue(${queName},{durable:true,autoDelete:false},function(q){
${exname}
${queName}
q.bind(ex,queName,function(){ ex.publish(queName,'test msg1',{deliveryMode:2}) ex.publish(queName,'test msg2 msg2',{deliveryMode:2}) }) setTimeout(function() { console.log("Single queue bind callback succeeded"); //exchange.destroy(); //queue.destroy();node connection.end(); connection.destroy(); },1000); q.subscribe({ack:true,prefetchCount:1},function(msg){ q.shift() console.log('receive msg : '+msg.data); }) })
})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var amqp = require('amqp')
var connection = amqp.createConnection({
host:'127.0.0.1',
post:5672,
login:'test',
password: '123',
vhost: '/test'
})
connection.on('error',function(err){
console.log('connection err : '+err);
})
var queName = 'test_q3',exname='test_ex';
connection.on('ready',function(){
var ex = connection.exchange(
${exname}
,{type:'fanout',durable:true,autoDelete:false});connection.queue(
${queName}
,{durable:true,autoDelete:false},function(q){})
The text was updated successfully, but these errors were encountered: