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 subscribe to all gochannel ? #421

Open
GreyXor opened this issue Feb 15, 2024 · 5 comments
Open

How to subscribe to all gochannel ? #421

GreyXor opened this issue Feb 15, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@GreyXor
Copy link

GreyXor commented Feb 15, 2024

Hi,
I'd like to subscribe/listen to anything in a gochannel. It's possible ?
Something like

s.Channel.Subscribe(context.Background(), "*") // To subscribe to `everything`

thanks

@GreyXor GreyXor changed the title How to subscribe to all gochannel How to subscribe to all gochannel ? Feb 15, 2024
@cold-bin
Copy link

cold-bin commented Jul 1, 2024

Hey, I think using only one channel to subscribe is better.

@ThreeDotsLabs ThreeDotsLabs deleted a comment from zhjdhx Sep 9, 2024
@m110
Copy link
Member

m110 commented Sep 9, 2024

This is not possible at the moment, but could be developed as a feature on top of GoChannel.

@m110 m110 added the enhancement New feature or request label Sep 9, 2024
@yashb042
Copy link

@m110 Should I pick this up?

@m110
Copy link
Member

m110 commented Sep 11, 2024

@yashb042 I'm happy to review! Please keep it backward compatible :)

@yashb042
Copy link

@m110 Just a quick thing, we are not storing the list of topics anywhere currently. Only place we can get all the topics from is iterating over the subscribers map to get a list of topics to which subscribers are subscribed to.

Do you suggest keeping a managed topicsList, adding a topic to this list whenever there is a new publisher with a new topic.

We can add that in the struct - GoChannel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants