Can't execute commands by client subscribed to channel #563

moein7tl opened this Issue Mar 11, 2014 · 1 comment


None yet

3 participants


I can't execute more than one command by same client which subscribed to channel,it works if I create new client,one for listening and another for executing commands.

var redis   =   require('redis'),
    client  =   redis.createClient(),
    console.log(reply); // echo null
        console.log(reply); this line doesn't execute

I use hredis and node v0.10.12

NodeRedis member

Hi @moein7tl -- this is due to the way Redis clients work. Once a client goes into "subscriber" mode the server will not allow it to send any commands. It is all documented in the README.

@brycebaril brycebaril closed this Mar 11, 2014
@BridgeAR BridgeAR added the question label Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment