Re: Sending very large chunks over the data channel

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