Commit 9f476ab2 authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

db

parent 449bba05
...@@ -27,7 +27,7 @@ function RPCCaller(config) ...@@ -27,7 +27,7 @@ function RPCCaller(config)
ch.responseEmitter = new EventEmitter(); ch.responseEmitter = new EventEmitter();
ch.responseEmitter.setMaxListeners(0); ch.responseEmitter.setMaxListeners(0);
ch.consume(REPLY_QUEUE , ch.consume(REPLY_QUEUE ,
(msg) => { console.log('reply consumee'); ch.responseEmitter.emit(msg.properties.correlationId, JSON.parse(msg.content.toString()))}, (msg) => { console.log('reply consumee to ' + msg.properties.correlationId); ch.responseEmitter.emit(msg.properties.correlationId, JSON.parse(msg.content.toString()))},
{noAck: true}); {noAck: true});
self.opened = true; self.opened = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment