2024-07-28 11:21:15 +00:00
|
|
|
async def filter(completeMessage, recipient, recipientNode, todo):
|
2024-08-01 01:00:46 +00:00
|
|
|
"""
|
|
|
|
Catch exchange protocol
|
2024-08-01 21:09:50 +00:00
|
|
|
|
2024-08-01 22:03:59 +00:00
|
|
|
`🔗 Source <https://git.utopic.work/PierMesh/piermesh/src/branch/main/Sponge/Protocols/catch.py>`__
|
2024-08-01 01:00:46 +00:00
|
|
|
"""
|
2024-07-28 11:21:15 +00:00
|
|
|
m = completeMessage
|
|
|
|
# TODO: Sending to other nodes clients
|
|
|
|
todo.append(
|
|
|
|
{
|
|
|
|
"action": "sendCatch",
|
|
|
|
"data": {
|
|
|
|
"toLocal": True,
|
|
|
|
"recipientNode": recipientNode,
|
|
|
|
"recipient": recipient,
|
|
|
|
"head": m["head"],
|
|
|
|
"body": m["body"],
|
|
|
|
"fins": m["fins"],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
)
|