Skip to content

Commit f0d8c82

Browse files
committed
test: Added debug logs
1 parent a0c4374 commit f0d8c82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/streaming/SSEDecoder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ export class NodeSSEDecoder extends BaseSSEDecoder {
8585
if (!response.body) {
8686
throw new Error('Response body is null');
8787
}
88+
89+
console.log('Starting stream', response.body);
8890
for await (const chunk of response.body as NodeJS.ReadableStream) {
8991
const text = typeof chunk === 'string' ? chunk : chunk.toString('utf-8');
9092
buffer += text;
91-
93+
9294
const lines = buffer.split('\n');
9395
buffer = lines.pop() || '';
9496

0 commit comments

Comments
 (0)