Add clean exit handling to bridge process

This commit is contained in:
Jared Miller 2026-01-27 16:16:46 -05:00
parent 4d6ecf78cd
commit bbfc9998a5
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -126,7 +126,8 @@ for await (const chunk of Bun.stdin.stream()) {
break;
case "disconnect":
ws?.close();
break;
send({ type: "disconnected" });
process.exit(0);
}
} catch {
send({ type: "error", message: "invalid json" });