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

UNSUBSCRIBE channel #448

Closed
githubfr opened this issue Apr 30, 2019 · 1 comment
Closed

UNSUBSCRIBE channel #448

githubfr opened this issue Apr 30, 2019 · 1 comment

Comments

@githubfr
Copy link

I can use the SUBSCRIBE channel command. But how can i unsubscribe?
Thank you very much.

@tidwall
Copy link
Owner

tidwall commented Jun 4, 2019

I just pushed a fix. The UNSUBSCRIBE command was missing.

So now, if you call something like SUBSCRIBE fleet or PSUBSCRIBE fleet:*, you'll call UNSUBSCRIBE fleet or PUNSUBSCRIBE fleet:* respectively.

Also the QUIT command will unsubscribe from all channels and close the connection. Or, you can just close the tcp socket from the client side and the channels will gracefully close automatically.

@tidwall tidwall closed this as completed Jun 4, 2019
tidwall added a commit that referenced this issue Jun 4, 2019
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