amqp url
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
close connection
connect to rabbitmq, auto call when construct,or can be called manually when need reconnect
get raw amqplib channel
publish into the exchange
exchange name
routingKey
attach a consumer on the queue
queue name
consumer function
rpc call,reply using temp queue
queue name
}
rpc over exchange
exchange name
routing key
send message to the queue
queue name
object=>JSON.stringify string=>Buffer.from
Generated using TypeDoc
CarrotMQ
EventEmitter