diff --git a/backend/server/src/index.ts b/backend/server/src/index.ts index 548d23e..cec9104 100644 --- a/backend/server/src/index.ts +++ b/backend/server/src/index.ts @@ -563,7 +563,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}`);