know name of group event is sent under #1630
Unanswered
aryaniyaps
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://stackoverflow.com/questions/66130387/channels-how-to-know-the-name-of-the-group-an-event-is-sent-inside
I've posted regarding this here.
So I have a websockets consumer like this
on websocket connect, I put the user into groups according to the boxes they are a part of. On disconnect, I remove them all. Now, this is how I fire my events.
So the event is being sent to a group with the box-id here.
However, I also need to check box-specific permissions for these events.
So inside the
fire_event
method, I need to do this.I need to know in which group this event is being sent under to determine permissions for the user. Is there any way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions