Skip to content

Commit cf2cda1

Browse files
authored
fix: Remove unneeded heartbeat handling. (#210)
1 parent 93391cc commit cf2cda1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Client.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ class Client {
161161
}
162162

163163
for await (const line of readNdJsonStream(response.body, combinedSignal)) {
164-
if (isStreamHeartbeat(line)) {
165-
continue;
166-
}
167164
if (isStreamError(line)) {
168165
throw new Error(`${line.payload.error}.`);
169166
}
@@ -229,9 +226,6 @@ class Client {
229226
}
230227

231228
for await (const line of readNdJsonStream(response.body, combinedSignal)) {
232-
if (isStreamHeartbeat(line)) {
233-
continue;
234-
}
235229
if (isStreamError(line)) {
236230
throw new Error(`${line.payload.error}.`);
237231
}

0 commit comments

Comments
 (0)