diff --git a/backend/server/src/index.ts b/backend/server/src/index.ts index c635fbd..09ad464 100644 --- a/backend/server/src/index.ts +++ b/backend/server/src/index.ts @@ -568,7 +568,7 @@ io.on("connection", async (socket) => { return; } - terminals[id].sendData(data); + await terminals[id].sendData(data); } catch (e: any) { console.error("Error writing to terminal:", e); io.emit("error", `Error: writing to terminal. ${e.message ?? e}`);