remove Network.enable buffering override

This commit is contained in:
Tommy D. Rossi
2026-01-25 14:22:34 +01:00
parent baac31ab6a
commit 316a10e9c9
2 changed files with 0 additions and 42 deletions
-17
View File
@@ -360,23 +360,6 @@ export async function startPlayWriterCDPRelayServer({ port = 19988, host = '127.
})
}
// Network.enable: Default to zero buffering to fix SSE streaming issues.
// CDP's Network domain buffers response bodies by default, which breaks ReadableStream
// for SSE/streaming responses. Setting maxTotalBufferSize: 0 disables this buffering.
// Agents can re-enable buffering by calling Network.disable then Network.enable with
// explicit buffer sizes if they need to read response bodies via Network.getResponseBody.
case 'Network.enable': {
const modifiedParams = {
maxTotalBufferSize: 0,
maxResourceBufferSize: 0,
...params
}
return await sendToExtension({
method: 'forwardCDPCommand',
params: { sessionId, method, params: modifiedParams }
})
}
case 'Runtime.enable': {
if (!sessionId) {
break