Re: Sending very large chunks over the data channel

>> 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.

In that context, I intended send() == data has gone out of the machine, not ACK.


-- 
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux

Received on Wednesday, 28 May 2014 12:43:54 UTC