Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
close the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 13, 2023
1 parent 703be26 commit 8202201
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/async/serializeAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ export function createTsonSSEResponse(opts: TsonAsyncOptions) {
for await (const chunk of iterable) {
controller.enqueue(`data: ${JSON.stringify(chunk)}\n\n`);
}

controller.close();
}

iterate().catch((err) => {
Expand Down

0 comments on commit 8202201

Please sign in to comment.