W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2018

Re: [webrtc-pc] WHATWG streams for data channel messages

From: Adam Rice via GitHub <sysbot+gh@w3.org>
Date: Wed, 31 Jan 2018 07:11:17 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-361843997-1517382676-sysbot+gh@w3.org>
send() will actually need to take a ReadableStream argument, the same way Request does.

send() could **return** a WritableStream, but I assume that would break the API.

If your code wants a WritableStream you can use a [TransformStream](https://streams.spec.whatwg.org/#ts) as an adaptor as [this example](https://streams.spec.whatwg.org/#example-transform-identity) demonstrates.

-- 
GitHub Notification of comment by ricea
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1732#issuecomment-361843997 using your GitHub account
Received on Wednesday, 31 January 2018 07:11:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:21:58 UTC