diff --git a/apps/web/src/pages/test.astro b/apps/web/src/pages/test.astro index 0aeb110b..5c879a75 100644 --- a/apps/web/src/pages/test.astro +++ b/apps/web/src/pages/test.astro @@ -39,7 +39,7 @@ import testOgImage from "../assets/pages/rpc-test.png"; const streamkitWrapperDiv = document.getElementById("streamkit-wrapper")!; const streamkitDiv = document.getElementById("streamkit")!; - const MAX_TIMEOUT_MS = 5_000; + const MAX_TIMEOUT_MS = 100_000; function connectToDiscord( label: string, @@ -57,6 +57,7 @@ import testOgImage from "../assets/pages/rpc-test.png"; socket.addEventListener("open", () => { console.log(`[${label}] Connected to ws server`); domNode.innerHTML = "🌎 Connected to Discord"; + console.time(label); }); socket.addEventListener("message", (event) => { @@ -67,6 +68,7 @@ import testOgImage from "../assets/pages/rpc-test.png"; domNode.innerHTML = "✅ Received Discord READY Event"; clearTimeout(timeoutId); connectionMap[label] = true; + console.timeEnd(label); } });