Skip to content

Commit

Permalink
fix: SSE event encoding new lines (bis) (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyco130 authored Dec 29, 2023
1 parent 78d9761 commit 96f3a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base/response/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function serverSentEvents(options: ServerSentEventsInit): Response {

sink = {
sendRaw(text: string) {
controller.enqueue(encoder.encode(text));
controller.enqueue(encoder.encode(text + "\n"));
},

send(event) {
Expand Down

0 comments on commit 96f3a3c

Please sign in to comment.