W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2012

Re: DataChannels API

From: Randell Jesup <randell-ietf@jesup.org>
Date: Fri, 31 Aug 2012 17:42:59 -0400
Message-ID: <50412FE3.1070504@jesup.org>
To: public-webrtc@w3.org
On 8/31/2012 5:32 PM, Bjoern Hoehrmann wrote:
> * Randell Jesup wrote:
>> The API, per the decisions at the Interim and mailing list is based
>> closely on the WebSockets interface.  For example, you are supposed to
>> wait for onopen to fire before calling send(), at both ends. (The
>> low-level IETF protocol supports sending before onopen, but WebSockets
>> doesn't.)  Currently I have no limit on send(DOMString); WebSockets
>> limits DOMStrings to 123 characters.
> The length limitation is in bytes, not characters, and only on .close
> for reason phrases ("I am closing the connection because the computer
> is going to reboot now"); the API does not allow you to queue messages
> to be sent if and once a connection has been established, but that is
> not different from the underlying protocol, the concept does not exist
> at that level.

Aha.  The dangers of reading code and not specs, and probably not 
looking too closely about where it was called from.  Thanks.

Randell Jesup
Received on Friday, 31 August 2012 21:44:05 UTC

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