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

Difference between channels and topics #43

Open
ssbb opened this issue Feb 16, 2018 · 2 comments
Open

Difference between channels and topics #43

ssbb opened this issue Feb 16, 2018 · 2 comments

Comments

@ssbb
Copy link

ssbb commented Feb 16, 2018

Hi! I am trying to use it with Absinthe Subscriptions. But there is a problem related to channels - I want an ability to retrieve message from different topic but not join such channel.

screen shot 2018-02-16 at 8 08 26 pm

As you can see on screenshot we actually join only __absinthe__:control channel, but got subscription incoming data at __absinthe__:doc:62645988 topic. And I can't join it (and shouldn't).

Do you think it's possible to get data from different topic but same channel?

Thanks!

@saschatimme
Copy link
Owner

I see the issue here. I think we could add special callback which can be added to Channel, e.g.

|> Channel.onAbsintheSubscription "__absinthe__:doc:62645988" myCallback

which would then add this to a new internal dictionary.
Then you could hook into the selfMsg Receive case and trigger the callback.

I currently do not have the time to add this on my own, but I can review any Pull Request you come up with :)

@ssbb
Copy link
Author

ssbb commented Feb 16, 2018

Checking how I can do it already :)

BTW do you think it should mention Absinthe at all? Just thought about something like

|> Channel.withExtraTopic "__absinthe__:doc:62645988" Receive

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