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()
Source:stackexchange.com