diff --git a/legacy/src/fetch-sse.ts b/legacy/src/fetch-sse.ts index 3dc4352a..40f2c6fd 100644 --- a/legacy/src/fetch-sse.ts +++ b/legacy/src/fetch-sse.ts @@ -24,7 +24,7 @@ export async function fetchSSE( // web standards, so this is a workaround... const body: NodeJS.ReadableStream = res.body as any - if (body.on || !body.read) { + if (!body.on || !body.read) { throw new Error('unsupported "fetch" implementation') }