Re: [whatwg/streams] can streams be transferred via postMessage()? (#276)

Okey so chrome and opera have made this possible already.
...I'm already using this in my StreamSaver lib and encounter an bug (i think?)

I'm transferring a readableStream out of a TransformStream on the main thread -> passing the readableStream to a other window -> and that window forwards that readableStream to the service worker

once that is done i terminate the 2nd window by closing/removing it and then the stream gets closed or something. i'm not sure if it's a bug or if it's something that isn't spec:ed. 

The main thread should still be able to write to the readableStream that has been forwarded to another context?

for a more deeper understanding i can refer you to my issue: https://github.com/jimmywarting/StreamSaver.js/issues/94

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/276#issuecomment-482749288

Received on Friday, 12 April 2019 23:10:27 UTC