W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2014

Re: Sending very large chunks over the data channel

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Wed, 28 May 2014 14:20:47 +0200
Message-ID: <CALiegfmEyDHnHExeVnNUNG+9eL7c411w7LYFgwNw+HRZ78D3Og@mail.gmail.com>
To: "piranna@gmail.com" <piranna@gmail.com>
Cc: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
2014-05-28 14:09 GMT+02:00 piranna@gmail.com <piranna@gmail.com>:
> Problem here would be if the connection gets clossed when
> there are still some objects on that list, you wouldn't be sure if an
> object has been send or not (send() returning a promise?)

You need a callback for that (even for implement the promise). I don't
think the JS API should include that. When you send a AJAX request or
a WebSocket message you don't know when it has been seen, and I see no
major problem with that. If you need ACK implement it as a custom
protocol on top of DataChannel.


-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Wednesday, 28 May 2014 12:21:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:40 UTC