route /api/table/table_name: Add explicit end event to end of stream

....othehrwise the browser will continue attempting to reconnect :-/
This commit is contained in:
Starbeamrainbowlabs 2022-02-25 03:22:19 +00:00
parent 181e3c692d
commit a62c8e6b4e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -12,6 +12,6 @@ export default async function(sys, ctx, _next) {
table: next.table table: next.table
}); });
} }
stream.write_json(`end`, {});
stream.end(); stream.end();
} }