From 43821c791ca3635bfdf2eaf3aad58e51a338cba5 Mon Sep 17 00:00:00 2001 From: albnnc Date: Thu, 9 Jul 2026 09:02:22 +0300 Subject: [PATCH] w --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 9988dd1..9a7138b 100644 --- a/main.ts +++ b/main.ts @@ -66,7 +66,7 @@ async function runSSE() { const url = new URL(req.url || "/", `http://${req.headers.host}`); if (req.method === "GET") { - const transport = new SSEServerTransport("/message", res); + const transport = new SSEServerTransport("/sse", res); const server = buildServer(); await server.connect(transport); @@ -77,7 +77,7 @@ async function runSSE() { return; } - if (req.method === "POST" && url.pathname === "/message") { + if (req.method === "POST" && url.pathname === "/sse") { const sessionId = url.searchParams.get("sessionId") || ""; const transport = transports.get(sessionId); if (!transport) {