arthur-fontaine / agrume

Server-side functions in your frontend for any tool. Easy, customizable and type-safe. Made for frontend developers.
https://agrume.js.org
MIT License
9 stars 0 forks source link

New feature: handle stream as parameter #83

Closed arthur-fontaine closed 1 month ago

arthur-fontaine commented 3 months ago

To complete the realtime capability, we should be able to receive streams.

arthur-fontaine commented 2 months ago

https://github.com/arthur-fontaine/agrume/pull/94#issuecomment-2323103074

Neither XHR nor Fetch API allows to achieve a full-duplex communication. Fetch API simply does not allow duplex: "full" in the majority of runtimes (only Deno does), while XHR does not allow to send ReadableStream as body.

We need to either: