@reignops/connector
v0.1.10
Published
A lightweight connector that links your queues to the Reign interface.
Readme
Reign: Connector
A lightweight connector that links your queues to the Reign interface.
Setup
First, you need to create a Service Key and grab your Environment ID, both of which are available in the Reign Dashboard within your project. For a step-by-step setup guide, navigate to the Onboarding tab from within your project.
Install
npm i @reignops/connectorInitialize
Initialize a new connector instance from your Node.js server:
import { ReignConnector, ReignQueueClient } from "@reignops/connector";
new ReignConnector({
client: "bullmq", // or "bull"
auth: {
service_key: "<your_service_key>",
environment_id: "<your_environment_id>",
},
client_connection: {
url: "redis://localhost:6379",
},
});Although not required, we recommend running your connector instance(s) in isolation.
