
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
A REST interface for rsmq the really simple message queue based on Redis.
This REST interface makes it easy to use rsmq with other application platforms like php, .net etc. Simply call the RESTful methods to send and receive messages.
Note: There is no security built in - so use this only in a trusted enviroment, just like memcached.
npm install
to install the dependenciesnpm test
node server.js
PUT /message/qname/id
Change the visibility of the message with id id
from queue qname
.
Example:
PUT /message/myqueue/dhxekddac921a9422ec10e5439b55aa62e4dd49142?vt=5
Response:
{"result": 1}
POST /queues/qname
Create a new queue qname
Parameters:
qname
(String): The Queue name. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.vt
(Number): optional (Default: 30) The length of time, in seconds, that a message received from a queue will be invisible to other receiving components when they ask to receive messages. Allowed values: 0-9999999delay
(Number): optional (Default: 0) The time in seconds that the delivery of all new messages in the queue will be delayed. Allowed values: 0-9999999maxsize
(Number): optional (Default: 65536) The maximum message size in bytes. Allowed values: 1024-65536Example:
POST /queues/myqueue
Content-Type: application/json
{
"vt": 30,
"delay": 0,
"maxsize": 2048
}
Response:
{"result": 1}
DELETE /messages/qname/id
Delete the message with id id
from queue qname
.
Example:
DELETE /messages/myqueue/dhxekddac921a9422ec10e5439b55aa62e4dd49142
Response:
{"result": 1}
DELETE /queues/qname
Delete the queue qname
and all messages in that queue.
Example:
DELETE /queues/myqueue
Response:
{"result": 1}
Get queue attributes, counter and stats
Parameters:
qname
(String): The Queue name.Example:
GET /queues/myqueue
Response:
{
"vt": 30,
"delay": 0,
"maxsize": 65536,
"totalrecv": 32,
"totalsent": 13,
"created": 1371645477,
"modified": 1371645477,
"msgs": 4,
"hiddenmsgs": 2
}
GET /queues
List all queues.
Example:
GET /queues
Response:
{"queues": ["myqueue","someOtherQueue"]}
GET /messages/qname
Receive the next message from the queue.
Parameters:
vt
(Number): optional (Default: 30) The length of time, in seconds, that a message received from a queue will be invisible to other receiving components when they ask to receive messages. Allowed values: 0-9999999Example:
GET /messages/myqueue?vt=30
Response:
{
"id": "dhxeguaqv8cb2c78e9b5c97121d60f4caf54925c03",
"message": "Hello World!",
"rc": 1,
"fr": 1370856862274,
"sent": 1370855815832
}
POST /messages/qname
Sends a new message.
Example:
POST /messages/myqueue
Content-Type: application/json
{
"message": "Hello World!",
"delay": 0
}
Response:
{
"id": "dhxekddac921a9422ec10e5439b55aa62e4dd49142"
}
Please see the LICENSE.md file.
FAQs
A RESTful interface for rsmq
The npm package rest-rsmq receives a total of 5 weekly downloads. As such, rest-rsmq popularity was classified as not popular.
We found that rest-rsmq 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.