simplify: remove ws bridge; wrangler-based relay tests

This commit is contained in:
Mohamed Boudra
2026-02-05 10:45:51 +07:00
parent 36e105ed30
commit 574bdc16f6
16 changed files with 785 additions and 1276 deletions
-29
View File
@@ -1,29 +0,0 @@
import { createRelayServer } from "@paseo/relay/node";
const port = Number(process.env.PORT ?? "7778");
const host = process.env.HOST ?? "0.0.0.0";
async function main() {
const server = createRelayServer({ port, host });
await server.start();
console.log(`[relay-local] ready host=${host} port=${port}`);
const stop = async () => {
try {
await server.stop();
} finally {
process.exit(0);
}
};
process.on("SIGINT", stop);
process.on("SIGTERM", stop);
setInterval(() => {}, 1e9);
}
main().catch((e) => {
console.error(e);
process.exit(1);
});