[Answered ]-How to delete an object in django-channels -socket?

1👍

Add to your dict message additional data:

{
     "action": "create"/"update"/"delete",
     "message": {"id": <>, ...},
     ...
}

And make appropriate action depending on value of "action" field inside def receive()

Leave a comment