From 1822deadc1e297b8335d309857f9270d677a0f53 Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Mon, 8 Dec 2025 12:33:49 +0530 Subject: [PATCH] add describe for /stream --- apps/cli/src/server.ts | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/apps/cli/src/server.ts b/apps/cli/src/server.ts index 8bf71d1d..b56f7331 100644 --- a/apps/cli/src/server.ts +++ b/apps/cli/src/server.ts @@ -573,6 +573,10 @@ const routes = new Hono() ) .get( '/stream', + describeRoute({ + summary: 'Subscribe to run events', + description: 'Subscribe to run events', + }), async (c) => { return streamSSE(c, async (stream) => { const bus = container.resolve('bus'); @@ -607,19 +611,6 @@ const routes = new Hono() }); } ) - .get('/sse', async (c) => { - return streamSSE(c, async (stream) => { - while (true) { - const message = `It is ${new Date().toISOString()}` - await stream.writeSSE({ - data: message, - event: 'time-update', - id: String(id++), - }) - await stream.sleep(1000) - } - }) - }) ; const app = new Hono()