- From: Mattias Buelens <notifications@github.com>
- Date: Sat, 18 Jul 2020 11:40:54 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 18 July 2020 18:41:06 UTC
@MattiasBuelens commented on this pull request. > @@ -3625,6 +3676,42 @@ as seen for example in [[#example-ws-no-backpressure]]. 1. Return ? [$AcquireWritableStreamDefaultWriter$]([=this=]). </div> +<h4 id="ws-transfer">Transfer via `postMessage()`</h4> + +<dl class="domintro"> + <dt><code>destination.postMessage(ws, { transfer: [ws] });</code> + <dd> + <p>Sends a {{WritableStream}} to another frame, window, or worker. + + <p>The transferred stream can be used exactly like the original. The original will become + [=locked to a writer|lock=] and no longer directly usable. ```suggestion [=locked to a writer|locked=] and no longer directly usable. ``` -- 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/pull/1053#pullrequestreview-451074814
Received on Saturday, 18 July 2020 18:41:06 UTC