diff --git a/scripts/tcpServer.py b/scripts/tcpServer.py index 5f2c7b5..8ed2453 100644 --- a/scripts/tcpServer.py +++ b/scripts/tcpServer.py @@ -23,11 +23,11 @@ while True: while True: data = connection.recv(1024) if data: - print(data.decode("utf-8")) + print(data.decode("utf-8"), end='', flush=True) else: print(f'Connection Terminated.') break - + finally: # Clean up the connection connection.close() \ No newline at end of file