MCPcopy
hub / github.com/apache/caldera / handle_msg

Method handle_msg

app/contacts/contact_udp.py:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39 def datagram_received(self, data, addr):
40 async def handle_msg():
41 try:
42 message = json.loads(data.decode())
43 for handle in [h for h in self.handles if h.tag == message.pop('tag')]:
44 await handle.run(message, self.services, addr[0])
45 except Exception as e:
46 self.log.debug(e)
47 asyncio.get_event_loop().create_task(handle_msg())

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected