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

how to call publish/subscribe ? #5

Open
hpgundam opened this issue Feb 1, 2016 · 0 comments
Open

how to call publish/subscribe ? #5

hpgundam opened this issue Feb 1, 2016 · 0 comments

Comments

@hpgundam
Copy link

hpgundam commented Feb 1, 2016

There is code in hiredis README:
reply = redisCommand(context,"SUBSCRIBE foo");
and I tried to call subscribe command with following code:
redisReply *reply = redisClusterCommand(cc,"SUBSCRIBE test");
but reply is null and , cc->errstr is "parse command error"
I think this isn't the right way.
is there another function for publish/subscribe or they're not supported now ?

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

1 participant