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

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