- From: Nidhi Jaju <notifications@github.com>
- Date: Mon, 30 Aug 2021 06:28:31 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 30 August 2021 13:28:43 UTC
@nidhijaju commented on this pull request.
> + body: chunk });
+ await response.text();
+ }
+});
+const writer = ws.getWriter();
+
+writer.write('some data');
+await writer.abort();
+```
+
+This example shows a use case of this feature with WebTransport.
+
+```javascript
+const wt = new WebTransport(...);
+await wt.ready;
+const ws = await wt.createUnidirectiaonalStream();
Done :)
--
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/1162#discussion_r698487735
Received on Monday, 30 August 2021 13:28:43 UTC