From a62c8e6b4e94e0596afc3a53793a9d79199b1b82 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 25 Feb 2022 03:22:19 +0000 Subject: [PATCH] route /api/table/table_name: Add explicit end event to end of stream ....othehrwise the browser will continue attempting to reconnect :-/ --- src/lib/agent/subsystems/http/routes/table.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/agent/subsystems/http/routes/table.mjs b/src/lib/agent/subsystems/http/routes/table.mjs index b26d75e..41a2428 100644 --- a/src/lib/agent/subsystems/http/routes/table.mjs +++ b/src/lib/agent/subsystems/http/routes/table.mjs @@ -12,6 +12,6 @@ export default async function(sys, ctx, _next) { table: next.table }); } - + stream.write_json(`end`, {}); stream.end(); }