Replies: 1 comment
-
@Ilyes-git this should have been fixed in v1.3 can you check? The issue you were having was you were not providing a request id to the subscribe and un-subscribe methods (while not documented this was required). However it has now been updated to no longer require the subscribing request id to be passed. |
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.
-
Hello everyone,
I'm new to channels, I've tried to follow the readme to the letter, but I still haven't managed to solve part of the problem.
My goal is simple, "I want to have the ability, to receive messages in real time for the logged in user."
To give you some context, let me share with you my current code:
Actions :
subscribe_to_send_messages
works perfectly 👌unsubscribe_from_send_messages
doesn't work 🙁Question :
1 - in
@message_activity.groups_for_consumer
decorator I tried to useself.scope
like mentioned on the documentation, but it doesn't seem to work (maybe the doc isn't up to date?).2 - The big issue for me : How to make
unsubscribe_from_send_messages
work, am I making a mistake somewhere?Thanks in advance for your help 🙏
Sources:
https://djangochannelsrestframework.readthedocs.io/en/latest/examples/filtered_model_observer.html
https://nilcoalescing.com/blog/BuildingARealtimeSocialNetworkUsingDjangoChannels/
Beta Was this translation helpful? Give feedback.
All reactions