Skip to content
New issue

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

JS bindings should support streaming #48

Open
bovee opened this issue Oct 18, 2024 · 0 comments
Open

JS bindings should support streaming #48

bovee opened this issue Oct 18, 2024 · 0 comments

Comments

@bovee
Copy link
Owner

bovee commented Oct 18, 2024

The JS bindings take a Box<[u8]> right now, but it would be nice if they took a ReadableStream or ReadableStreamByobReader (wrapped as a JsValue?) that we could wrap into a Read to pass along to get_reader. I think those return Promises or Futures so we might have to use async and a wrapper, e.g. https://docs.rs/wasm-streams/latest/wasm_streams/readable/struct.ReadableStreamBYOBReader.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant