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

allow subscribe to multiple channels at once #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kwojtaszek
Copy link

No description provided.

@mloughran
Copy link
Owner

Allowing subscribing and unsubscribing to multiple channels seems reasonable since it would then match the design of the redis api (which is the general intent). However I see you've redefined the subscribe method without removing the old implementation, and the new implementation is not api compatible. Thoughts welcome.

Also, psubscribe and punsubscribe should be changed to match if one was to make changes.

Is it worth it?

@kwojtaszek
Copy link
Author

@mloughran I didn't want to brake api for subscribing and unsubscribing, that's why add one method that allows user to pass multiple channels to subscribe. Do you think that dropping custom proc is worth breaking the subscription api?

You're right, psubscribe and punsubscribe should be changed to match that.

@sponomarev
Copy link

👍

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

Successfully merging this pull request may close these issues.

3 participants