Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Aug 23, 2024
1 parent 547f317 commit 3c92dd7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion daemon/sse/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ export const createSSE = () => {
},
pull(controller) {
startMeta(since)
.then((meta) => meta && enqueue(controller, meta))
.then((meta) => {
if (meta) {
console.log("enqueueing meta");
controller.enqueue({
data: encodeURIComponent(JSON.stringify(meta)),
event: "message",
});
} else {
console.log("not enqueing meta");
}
})
.catch(console.error);

const handler = (e: CustomEvent<DaemonEvent>) =>
Expand Down

0 comments on commit 3c92dd7

Please sign in to comment.