Best way to stream data in and out? #1483
Unanswered
DavidDudson
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I'll implement |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A simplified version of our napi rust lib would be
Node Stream => Rust Processor => Node Stream
Essentially the Node Process needs to Write to a Stream and expose it to rust so it can be Read, processed and then Rust needs to write data to another stream so we can consume the results back from
I'm curious about what the best practices are for dealing with this currently.
Is it possible somehow to have an napi function that looks like
process(input: Stream): Stream
Would you
I noticed there is a crate for wasm (https://crates.io/crates/wasm-streams), but as far as I can tell there is not one for napi, is this something that could be of interest to this lib? Or am I missing something obvious.
Beta Was this translation helpful? Give feedback.
All reactions