Connection
Example Usage
const pulseConfig = {
processEvery: '1 minute',
maxConcurrency: 10,
db: {
address: 'mongodb://localhost:27017/myApp',
collection: 'jobQueue'
}
};
const pulse = new Pulse(pulseConfig, (error, collection) => {
if (error) {
console.error('Connection error:', error);
} else {
console.log('Connected to MongoDB collection:', collection.collectionName);
}
});new Pulse(config?, cb?)
new Pulse(config?, cb?)Parameters
Last updated