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

Re: DataChannel: how to know the max size of the sending buffer?

From: Wolfgang Beck <wolfgang.beck01@googlemail.com>
Date: Sun, 11 May 2014 20:09:36 +0200
Message-ID: <536FBCE0.8020402@googlemail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 05/10/14 15:26, Iñaki Baz Castillo wrote:
> 2014-05-10 14:09 GMT+02:00 Wolfgang Beck <wolfgang.beck01@googlemail.com>:
>> recv() would fail with an exception, when there is no data available,
>> send() would fail with an exception, when the JS tried to send without
>> waiting for a onsendspace() event.
> 
> The problem is that the DataChannel JS API mimics the WebSocket JS API
> (it is intentional), which behaves in the same way.
> 
Ah, ok. Still a horribly clueless design. It may work for WebSockets
which was intended for signaling events, not bulk data transfer.

JS definitely needs a unified, composable way to deal with operations
that may queue and block; WebSockets, Datachannels, File reader/write, etc.


Wolfgang
Received on Sunday, 11 May 2014 18:10:16 UTC

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