add user to multiple groups on connect #1636
Unanswered
aryaniyaps
asked this question in
Q&A
Replies: 1 comment
-
Also these boxes can have a really really huge number of users in them, like hundreds of thousands if the application scales. Is it recommended to do event sending this way? I heard that groups are not suitable for more than 50 channels in them. What would be an alternative or solution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
relevant stack overflow question is here.
Project details
Models
So I have my models like this.
Consumers
I have a websockets framework with routing like this.
this is how I send ws messages.
(using django signals)
What needs to be done
The api needs to send box-specific events, so I have different groups for boxes.
Users which connect to these groups will receive the events they need.
So, when the user connects to the "gateway", I add the user to all the boxes they are a part of, (plus a private group to send user-specific information)
On disconnect, I remove them from the same.
Issues being faced
However, I am facing issues here.
An example,
Any ways to fix these issues?
Beta Was this translation helpful? Give feedback.
All reactions