fix: rpc stream

This commit is contained in:
Cristina Poncela Cubeiro
2026-06-22 15:11:14 +02:00
parent 555ab2e548
commit 13a18600c6
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -72,6 +72,7 @@ export async function startIpcServer(handler: IpcRequestHandler): Promise<Server
return;
}
socket.removeAllListeners("data");
const rpcStream = handler.openRpcStream(
request.instanceId,
(response) => {
@@ -92,7 +93,6 @@ export async function startIpcServer(handler: IpcRequestHandler): Promise<Server
}
socket.write(encodeMessage(response));
socket.removeAllListeners("data");
socket.on("data", (rpcChunk: Buffer | string) => {
buffer += rpcChunk.toString();
for (;;) {