[streams] can streams be transferred via postMessage()? (#276)

Are there plans to support transferring streams between workers or iframes using postMessage?

This question came up in https://bugzilla.mozilla.org/show_bug.cgi?id=1128959#c2

> Does this allow receiving a ReadableStream, from for example a filesystem
> API or a network API, and then transferring that ReadableStream to a Worker
> thread using postMessage({ readThis: myStream }, [myStream]);
> 
> Likewise, can a page instantiate a ReadableStream (through a ReadableStream
> constructor or through some other means) that can then be transferred to a
> Worker thread?
> 
> This doesn't mean that all ReadableStreams have to be transferrable. For example a stream of plain JS objects can obviously not be transferred. So maybe we need a notion of transferrable and non-transferrable streams.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/276

Received on Wednesday, 4 February 2015 04:30:13 UTC