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
Received on Wednesday, 28 May 2014 12:21:35 UTC

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