stefanwille / crystal-redis

Full featured Redis client for Crystal
MIT License
380 stars 61 forks source link

Subscribtion block not called. #39

Closed ghost closed 3 years ago

ghost commented 7 years ago

My Code:

REDIS = Redis.new(database: 2)

REDIS.subscribe("test") do |on|
  puts typeof(on)

  on.message do |channel, message|
    puts message
  end
end

My output:

What my redis-cli receives:

127.0.0.1:6379> SUBSCRIBE test
Reading messages... (press Ctrl-C to quit)
1) "subscribe"
2) "test"
3) (integer) 1
1) "message"
2) "test"
3) "HELLOOOOOOSSS"

What I want: That the crystal-redis subscribtion gives me a message.

@stefanwille

stefanwille commented 7 years ago

HI Daniel, thanks for reporting. I will look into it.

foi commented 7 years ago

I have tried on crystal 0.22.0, crystal redis 1.8.0 and it's works.

vladfaust commented 6 years ago

@stefanwille you never looked into it. The one of the most major crystal libs is not maintained!

stefanwille commented 6 years ago

@vladfaust can you reproduce this issue?

vladfaust commented 6 years ago

@stefanwille I'm sorry, the bump wasn't related to this particular issue, I just wanted to call you see the other ones, especially #4

kostya commented 6 years ago

i don't know what the issue is, subscription works for me in production very well.

kostya commented 3 years ago

not confirmed