diff --git a/github/index.ts b/github/index.ts index 09246273..228ee6bb 100644 --- a/github/index.ts +++ b/github/index.ts @@ -461,15 +461,15 @@ async function subscribeSessionEvents() { let text = "" ;(async () => { while (true) { - console.log("!@#!@#!@#! reading...") const { done, value } = await reader.read() - console.log("!@#!@#!@#! read", done, value) if (done) break const chunk = decoder.decode(value, { stream: true }) + console.log("!@#!@#!@#! read", chunk) const lines = chunk.split("\n") for (const line of lines) { + console.log("!@#!@#!@#! line", line) if (!line.startsWith("data: ")) continue const jsonStr = line.slice(6).trim()