Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
amqp-service
Advanced tools
| Download only 1.2.0+
versions only, cause lower versions contain bugs
AMQP service which can fetch and send messages to queues
# Advanced Message Queue Protocol settings
amqp:
# AMQP Server settings
# You can read more about this settings [here](http://www.squaremobius.net/amqp.node/channel_api.html#connect)
server:
protocol: 'amqp'
hostname: 'localhost'
port: 5672
username: 'guest'
password: 'guest'
vhost: '/'
locale: 'en_US'
frameMax: 0
heartbeat: 60
# The Queues which will be added to program
# Note that you can change only value of this keys, cause keys are hardcoded in code
queues:
# Name of the Queue
# Params of the Queue
# You can read more about this params [here](http://www.squaremobius.net/amqp.node/channel_api.html#channel_assertQueue)
# Event that triggers when consumer receive msg from this queue
# Your event handler will receive deserialized and parsed msg
- name: 'first_queue'
params:
durable: false
event: 'on_amqp_first_queue'
- name: 'second_queue'
params:
durable: false
event: 'on_amqp_second_queue'
const amqpService = new AMQPService(
config.get('amqp.server'),
config.get('amqp.queues')
);
await amqpService.start();
// If you want to stop AMQP Service use `amqpService.stop()`
// If you want to send Message to queue:
await amqpService.sendMessage('first_queue', {
hello: 'world'
});
// If you want to handle messages from queue:
amqpService.on('on_amqp_first_queue', msg => {
...
});
FAQs
AMQP client
The npm package amqp-service receives a total of 0 weekly downloads. As such, amqp-service popularity was classified as not popular.
We found that amqp-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.