We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Returning a Response created from a ReadableStream doesn't seem to work.
Response
ReadableStream
To Reproduce
lagon dev stream.js
export function handler(request) { return new Response( new ReadableStream({ pull(controller) { controller.enqueue(new Uint8Array([65, 66, 67])); controller.close(); }, }), ); }
http://127.0.0.1:1234
I also tried creating a ReadableStream via TransformStream.
TransformStream
Expected behavior It should display ABC.
ABC
Information:
lagon-cli 0.1.0
The text was updated successfully, but these errors were encountered:
I think this has been fixed in #204, let me try. I haven't yet merged the release for this (#203).
Sorry, something went wrong.
Can confirm that the issue was fixed by #204! I'll do a release soon, so you'll have to npm i -g @lagon/cli again to upgrade.
npm i -g @lagon/cli
Just released version 0.3.3, which also includes some more fixes and improvements. Tested again with your code and it's working fine!
-> npm i -g @lagon/cli@latest
npm i -g @lagon/cli@latest
No branches or pull requests
Describe the bug
Returning a
Response
created from aReadableStream
doesn't seem to work.To Reproduce
lagon dev stream.js
:http://127.0.0.1:1234
in a browser.I also tried creating a
ReadableStream
viaTransformStream
.Expected behavior
It should display
ABC
.Information:
lagon-cli 0.1.0
The text was updated successfully, but these errors were encountered: