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

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

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Tue, 30 Jan 2018 16:40:57 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-361654117-1517330456-sysbot+gh@w3.org>
ack. So it seems that we need a send() call on DataChannel that takes a WritableStream argument, and a form of the message event (which sends a MessageEvent, where the data type is Any) that allows us (probably with a new binaryType value) that generates a ReadableStream object when a message comes in.

These are new API surfaces. We can't add them by shim, although we can emulate them in a shim to some degree for small messages (by buffering the whole message before we hand it off to its recipient).
I *think* I understand what we need to do now.

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1732#issuecomment-361654117 using your GitHub account
Received on Tuesday, 30 January 2018 16:41:32 UTC

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