change received byte size

This commit is contained in:
Ilya Uraev 2025-05-22 16:15:50 +03:00
parent a564b91a1e
commit e3fa909422

View file

@ -32,7 +32,7 @@ class RobotClient:
def _recv_full_json(self) -> dict:
buffer = ""
while True:
chunk = self.sock.recv(1024).decode("utf-8")
chunk = self.sock.recv(4096).decode("utf-8")
if not chunk:
raise ConnectionError("Connection closed")
buffer += chunk