diff --git a/utils.py b/utils.py index b758b0e..5ffa3cf 100644 --- a/utils.py +++ b/utils.py @@ -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