cloudflare / cloudflare/workers-rs
[Feature] Implementing Stream Types via RPC in Rust
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Description
**Description:**
[Documentation](https://developers.cloudflare.com/workers/runtime-apis/rpc/#readablestream-writeablestream-request-and-response) states "You can send and receive [ReadableStream](https://developers.cloudflare.com/workers/runtime-apis/streams/readablestream/), [WriteableStream](https://developers.cloudflare.com/workers/runtime-apis/streams/writablestream/), [Request](https://developers.cloudflare.com/workers/runtime-apis/request/), and [Response](https://developers.cloudflare.com/workers/runtime-apis/response/) using RPC methods". How can I implement these stream types via RPC methods in Rust?
**Expectations:**
- Detailed code example showing how to create a ReadableStream in Rust RPC
- Demonstrate how to send and receive streams between client and server
- Provide a complete working example with server and client code
**Related Issues:**
No access to Env in #[wasm_bindgen] RPC functions #720
Contributor guide
Assessment
This issue has not been assessed yet.