redis-stream
redis-stream copied to clipboard
Auth Missing
Hi,
I was trying to use the auth method but seemed not working, then I saw that into the code is missing the logic to take care about the auth part. I also tried to add it by myself and it worked with two lines of code, am I missing something or there are better ways to achieve this goal?
Many Thanks Guys!
PS. This is what I've done:
function Redis (port, host, db, auth) { this.port = port || 6379 this.host = host || 'localhost' this.db = String(db || 0) this.auth = auth || '' return this }
... stream.redis = _redis stream.redis.write(Redis.parse([ 'auth', this.auth ])) stream.redis.write(Redis.parse([ 'select', this.db ])) return stream ...
Yip, needed
@paolo-chiabrera :+1: