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

channel_layer.group_send in another language #253

Open
amirmehdi opened this issue May 18, 2021 · 2 comments
Open

channel_layer.group_send in another language #253

amirmehdi opened this issue May 18, 2021 · 2 comments

Comments

@amirmehdi
Copy link

Hi, thanks for this great project
I want to implement my web socket in Django but other microservices (in other languages like java and golang) can send some messages to a group. How can I do this?
I tried to understand the group_send function but it is very complicated. I know how to communicate with Redis in another language. Can you explain the function of sending a group to me?

@amirmehdi
Copy link
Author

In the channel_rabbit_mq project, the group_send function is implemented simply and very briefly, and it does only one thing, and that is to send to the queue.
https://github.com/CJWorkbench/channels_rabbitmq/blob/master/channels_rabbitmq/core.py#L436
But I do not know what Function group_send does in this project.

@acu192
Copy link
Collaborator

acu192 commented Jul 25, 2021

If you use the new pubsub.py implementation, then group_send is much easier to understand. Worth consideration -- it just uses Redis pub/sub so it should be easy to publish messages from whatever language you want, and the groups name (channel names) are easy to derive.

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