Durable Objects response streaming doesn't have flushing capabilities

Hi,

I’ve been trying to use durable objects as a way to store state (as simple as this.state = []) and lost two days to figure out that it’s just not possible to stream line by line from DO to the worker and back to the worker response.

TransformStream reader that gets returned to cloudflare controls flushing and will only flush every 1000 or so bytes.

I think this should be documented, otherwise, HTTP streaming should be equivalent to websockets, but due to lack of flushing that doesn’t work.

Relevant: Streaming responses - #2 by Judge

For anyone trying to use Stream API for long polling: don’t, responses are buffered and you can’t control that.