
Product
Announcing Bun and vlt Support in Socket
Bringing supply chain security to the next generation of JavaScript package managers
@meowwolf/amqp-0.9.1-client
Advanced tools
A simple amqp client that facilitates publishing and subscribing to an amqp v0.9.1 RabbitMQ broker.
$ npm i @meowwolf/amqp-0.9.1-client
import { createRabbitMqClient } from '@meowwolf/amqp-0.9.1-client'
// or
const { createRabbitMqClient } = require('@meowwolf/amqp-0.9.1-client')
const amqpClient = await createRabbitMqClient(amqpConfig, exchangeConfig)
/*
AmqpConfig {
host: string
port: number
username: string
password: string
appId?: string - default: '@meowwolf/amqp-0.9.1-client'
vhost?: string - default: '/'
tls?: boolean - default: false
prefetch?: number - default: 0
autoReconnect?: boolean - default: true
retryConnectionInterval?: number in ms - default: 5000
}
ExchangeConfig {
exchangeName?: string - default: 'amq.direct'
type?: 'direct' | 'fanout' | 'topic' | 'header' - default: 'direct'
durable?: boolean - default: false
autoDelete?: boolean
}
*/
addConsumer() expects an argument object consisting of a configuration object and a callback
await amqpClient.addConsumer({
queueConfig,
callback: message => {
// .. do somethig with the message here
},
})
/*
QueueConfig {
queueName?: string - default: ''
routingKey?: string - default: ''
exclusive?: boolean - default: true
durable?: boolean - default: false
autoDelete?: boolean - default: true
noAck?: boolean - default: true
}
*/
amqpclient.ack(message)
amqpClient.publish(payloadString, publishOptions)
/*
PublishOptions {
exchangeName?: string - defaults to exchangeConfig value
routingKey?: RoutingKey - default: ''
correlationId?: string - default: ''
headers?: GenericObject - default: {}
}
*/
amqpClient.sendToQueue(payloadString, sendToQueueOptions)
/*
SendToQueueOptions {
queueName: string
correlationId?: string - default: ''
headers?: GenericObject - default: {}
}
*/
FAQs
AMQP 0-9-1 Broker Client
The npm package @meowwolf/amqp-0.9.1-client receives a total of 3 weekly downloads. As such, @meowwolf/amqp-0.9.1-client popularity was classified as not popular.
We found that @meowwolf/amqp-0.9.1-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 open source maintainers 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.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.