rsmq
rsmq copied to clipboard
If using ioredis with password callback not firing
const RedisSMQ = require("rsmq")
const Redis = require("ioredis")
const redis = new Redis("redis://:[email protected]:6379/0")
const rsmq = new RedisSMQ({ client: redis })
rsmq.sendMessage({ qname: queue_name, message: JSON.stringify(message) }, function (err, resp) {
console.log(err, resp)
})
All connected, but sendMessage
callback not firing, if I'm disable auth in redis config, get rid of ":foobared" all works.