ops(relay): bridge production traffic to Fly

This commit is contained in:
Mohamed Boudra
2026-07-11 16:49:15 +02:00
parent c800c6a3f1
commit 5ae53c7e55
5 changed files with 117 additions and 2 deletions
+3 -2
View File
@@ -12,7 +12,7 @@ import {
// This live test uses the hosted relay's real TLS endpoint. Self-hosted relay TLS
// opt-in is covered at URL-building/integration level so the local E2E does not
// need to provision trusted certificates.
const RELAY_BASE_URL = "wss://relay.paseo.sh";
const RELAY_BASE_URL = process.env.PASEO_LIVE_RELAY_URL ?? "wss://relay.paseo.sh";
async function withRetry<T>(
fn: () => Promise<T>,
@@ -119,6 +119,7 @@ describe("Live relay (relay.paseo.sh) E2E", () => {
// === Connect ===
const daemonControlWs = new WebSocket(serverControlUrl);
const clientWs = new WebSocket(clientUrl);
const connected = waitForConnected(daemonControlWs, connectionId);
let daemonWs: WebSocket | null = null;
try {
@@ -127,7 +128,7 @@ describe("Live relay (relay.paseo.sh) E2E", () => {
waitOpen(clientWs, "client"),
]);
await waitForConnected(daemonControlWs, connectionId);
await connected;
daemonWs = new WebSocket(serverDataUrl);
await waitOpen(daemonWs, "server-data");