send events from server side only #1619
Unanswered
aryaniyaps
asked this question in
Q&A
Replies: 1 comment
-
I think you can just use HTTP for SSE (and Long polling) use-cases. See the example consumers in the docs: https://channels.readthedocs.io/en/stable/topics/consumers.html#asynchttpconsumer (towards the bottom). |
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.
-
so I have an application where people can create objects and update or delete the same via the django-rest-framework. Now, I want to set up a websockets framework over it, such that whenever an object is created, the server sends an event with the associated data.
this is what I've come up with so far.
However, I want to make sure that the client cannot send any websockets messages. Only the server can send to clients who are in the associated group with name
box_group_name
. How can I achieve this? Can someone please help me?Beta Was this translation helpful? Give feedback.
All reactions