You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use @model_observer to notify clients about model changes
the message is sent to all clients,
is there some way to avoid sending the message to the client which made that change?
because that client has already received same data in the CRUD response
When I do this with bare django-channels, I generate a UUID in the connect() method and save it to the instances state (e.g. self.id). That way the session ID can be compared when sending responses and filtered to avoid looping back to the same client.
Activity
johnthagen commentedon Jun 21, 2023
When I do this with bare
django-channels, I generate a UUID in theconnect()method and save it to the instances state (e.g.self.id). That way the session ID can be compared when sending responses and filtered to avoid looping back to the same client.