@intuned/runtime-dev 1.1.6-vnc.1 → 1.1.6-vnc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -278,6 +278,20 @@ async function startVncServer() {
|
|
|
278
278
|
}
|
|
279
279
|
const noVncProcess = (0, _child_process.spawn)("/opt/bin/noVNC/utils/launch.sh", ["--listen", "6080", "--vnc", "localhost:5900"]);
|
|
280
280
|
processes.push(noVncProcess);
|
|
281
|
+
for (const process of processes) {
|
|
282
|
+
process.stdout?.on("data", data => {
|
|
283
|
+
console.log(`Process ${process.pid} stdout: ${data}`);
|
|
284
|
+
});
|
|
285
|
+
process.stderr?.on("data", data => {
|
|
286
|
+
console.error(`Process ${process.pid} stderr: ${data}`);
|
|
287
|
+
});
|
|
288
|
+
process.on("error", error => {
|
|
289
|
+
console.error(`Process ${process.pid} error: ${error}`);
|
|
290
|
+
});
|
|
291
|
+
process.on("exit", (code, signal) => {
|
|
292
|
+
console.log(`Process ${process.pid} exited with code ${code} and signal ${signal}`);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
281
295
|
}
|
|
282
296
|
async function stopVncServer() {
|
|
283
297
|
for (const process of processes.reverse()) {
|