Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.7- pmessage always returning UNDEFINED message in CLUSTER mode #87

Closed
klinquist opened this issue Jul 3, 2015 · 1 comment
Closed

Comments

@klinquist
Copy link
Contributor

Test code:

var Redis = require('ioredis');
var  client = new Redis.Cluster([{ host: "redis-cluster-a.local", port: 6379}]);
var client2 = new Redis.Cluster([{ host: "redis-cluster-a.local", port: 6379}]);

client.psubscribe("events:*");

client.on("pmessage", function (pattern, channel, message){
     console.log("Pattern = " + pattern);
     console.log("Channel = " + channel);
     console.log("Message = " + message);
});

setInterval(function(){
      client2.publish("events:abdd:efg", "myMessage");
},5000);

Results:

Pattern = events:*
Channel = events:abdd:efg
Message = undefined
@klinquist klinquist changed the title 1.5.7- psubscribe always returning UNDEFINED message in CLUSTER mode 1.5.7- pmessage always returning UNDEFINED message in CLUSTER mode Jul 3, 2015
@klinquist
Copy link
Contributor Author

I have fixed this and created a pull request:
#88

@luin luin closed this as completed Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants