Harden client and WebSocket proxy

This commit is contained in:
2026-09-09 13:04:56 +02:00
parent f4f95ffff4
commit 8986f6270f
64 changed files with 4410 additions and 7313 deletions
+5 -4
View File
@@ -8,15 +8,16 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
console.log('Starting WebSocket server');
const wsServer = spawn('node', ['src/websocket-server.js'], {
stdio: 'inherit',
shell: true,
shell: false,
cwd: __dirname
});
// Start the SvelteKit dev server
console.log('Starting SvelteKit dev server');
const sveltekit = spawn('npm', ['run', 'dev'], {
const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';
const sveltekit = spawn(npmCommand, ['run', 'dev'], {
stdio: 'inherit',
shell: true,
shell: false,
cwd: __dirname
});
@@ -41,4 +42,4 @@ process.on('SIGTERM', () => {
wsServer.kill('SIGTERM');
sveltekit.kill('SIGTERM');
process.exit(0);
});
});