Skip to content

Question about client notify #161

Closed
Closed

Description

@tyctor

Hi

first thank you for this module.

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

thanks for any hint

Activity

  1. johnthagen commented on Jun 21, 2023

    @johnthagen
    Contributor

    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.

  2. locked and limited conversation to collaborators on Jun 22, 2023
  3. converted this issue into a discussion #184 on Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions