redis-stream icon indicating copy to clipboard operation
redis-stream copied to clipboard

Auth Missing

Open paolo-chiabrera opened this issue 10 years ago • 2 comments

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 ...

paolo-chiabrera avatar Jun 03 '14 10:06 paolo-chiabrera

Yip, needed

samuelgoldenbaum avatar Jan 08 '15 14:01 samuelgoldenbaum

@paolo-chiabrera :+1:

mbejda avatar May 23 '15 16:05 mbejda