Skip to content

Commit

Permalink
fix: wrong object format for sse response (#4176)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b268fc)
  • Loading branch information
czy88840616 committed Dec 15, 2024
1 parent 2babf4d commit c3cb194
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/response/sse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export class ServerSendEventStream<
this.ctx.req.socket.setTimeout(0);
this.ctx.req.socket.setNoDelay(true);
this.ctx.req.socket.setKeepAlive(true);
res.push({
data: ':ok',
});
res.push(': ok');
}

const senderObject = chunk;
Expand Down

0 comments on commit c3cb194

Please sign in to comment.