Skip to content

Commit 25c681e

Browse files
fix: ignore heartbeat messages during EventQL queries (#242)
1 parent bea3a90 commit 25c681e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ class Client {
226226
}
227227

228228
for await (const line of readNdJsonStream(response.body, combinedSignal)) {
229+
if (isStreamHeartbeat(line)) {
230+
continue;
231+
}
229232
if (isStreamError(line)) {
230233
throw new Error(`${line.payload.error}.`);
231234
}

0 commit comments

Comments
 (0)