
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
rsmq-promise
Advanced tools
A lightweight message queue for Node.js that requires no dedicated queue server. Just a Redis server.
id
that you can use to delete the message.sendMessage
method will return the id
for a sent message.receiveMessage
method will return an id
along with the message and some stats.createQueue
and receiveMessage
methods described below for optional parameters like visibility timeout and delay.npm install --save rsmq-promise
const RSMQPromise = require('rsmq-promise');
const rsmq = new RSMQPromise({
host: "127.0.0.1",
port: 6379
});
Parameters for RedisSMQ via an options object:
host
(String): optional (Default: "127.0.0.1") The Redis serverport
(Number): optional (Default: 6379) The Redis portoptions
(Object): optional (Default: {}) The Redis options object.client
(RedisClient): optional A existing redis client instance. host
and server
will be ignored.ns
(String): optional (Default: "rsmq") The namespace prefix used for all keys created by RSMQrealtime
(Boolean): optional (Default: false) Enable realtime PUBLISH of new messages (see the Realtime section)rsmq.createQueue({qname: 'myqueue'})
.then(done => console.log('Queue created!'))
.catch(err => console.log(err));
rsmq.sendMessage({ qname: 'myqueue', message: 'my message!' })
.then(result => console.log("Message sent. ID:", result))
.catch(err => console.log(err));
rsmq.receiveMessage({qname: 'myqueue'})
.then(message => console.log(message))
.catch(err => console.log(err))
rsmq.deleteMessage({ qname: 'myqueue', id: 'dhoiwpiirm15ce77305a5c3a3b0f230c6e20f09b55'})
.then(result => console.log("Message deleted."))
.catch(err => console.log("Message not found."));
rsmq.listQueues()
.then(queues => console.log(queues))
.catch(err => console.log(err));
rsmq.quit()
.then(success => console.log(success))
.catch(err => console.log(err));
Thanks for: Patrick Liess
More info: https://github.com/smrchy/rsmq
FAQs
Simple Promise Interface for rsmq
The npm package rsmq-promise receives a total of 1,539 weekly downloads. As such, rsmq-promise popularity was classified as popular.
We found that rsmq-promise 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.