fix: adjusted ping data on ping_stream, and made it so that communication agent is more robust and quick in ping communication.

ref: N25B-142
This commit is contained in:
Björn Otgaar
2025-10-30 13:07:01 +01:00
parent df6a39866b
commit af3e4ae56a
2 changed files with 6 additions and 2 deletions

View File

@@ -86,6 +86,9 @@ class RICommunicationAgent(Agent):
# See what endpoint we received
match message["endpoint"]:
case "ping":
topic = b"ping"
data = json.dumps(True).encode()
await self.agent._pub_socket.send_multipart([topic, data])
await asyncio.sleep(1)
case _:
logger.info(