TLDR: `new ReadableStream()` is working
TLDR:
Hi guys! I'm implementing a feature using Prisma's Pulse product, which streams database change events to listening clients.
I'm able to connect and listen to events perfectly on a traditional worker, but the same code on Workers for Platforms as a customer worker has issues when instantiating a ReadableStream.
When attempting to add this to my WFP
I'm guessing maybe I need to set this in my customer code somehow?
Is there potentially some sort of binding I can set to enable this for my customers?
My other suspicion is that it may be a different error, but cloudflare potentially catches it and throws this generic error instead.
new ReadableStream() is working for me in normal workers, but not workers for platformsHi guys! I'm implementing a feature using Prisma's Pulse product, which streams database change events to listening clients.
I'm able to connect and listen to events perfectly on a traditional worker, but the same code on Workers for Platforms as a customer worker has issues when instantiating a ReadableStream.
Error: To use the new ReadableStream() constructor, enable the streams_enable_constructors compatibility flag. Refer to the docs for more information: https://developers.cloudflare.com/workers/platform/compatibility-dates/#compatibility-flagsI was hoping it would be as simple as:
compatibility_flags = ['streams_enable_constructors']When attempting to add this to my WFP
wrangler.toml , I get the following error:The compatibility flag streams_enable_constructors became the default as of 2022-11-30 so does not need to be specified anymore. [code: 10021]Current compatibility date (for both platform code, and customer workers):
compatibility_date = "2024-02-21"I'm guessing maybe I need to set this in my customer code somehow?
Is there potentially some sort of binding I can set to enable this for my customers?
My other suspicion is that it may be a different error, but cloudflare potentially catches it and throws this generic error instead.
