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

Re: DataChannels API

From: Randell Jesup <randell-ietf@jesup.org>
Date: Fri, 07 Sep 2012 05:54:57 -0400
Message-ID: <5049C471.2070208@jesup.org>
To: public-webrtc@w3.org
On 9/7/2012 4:46 AM, Stefan Hakansson LK wrote:
> On 09/06/2012 04:38 PM, Randell Jesup wrote:
>> On 9/6/2012 10:19 AM, Adam Bergkvist wrote:
>>> What triggers the onconnected callback?
>>
>> SCTP/DTLS Association connection.
>
> Is there really a need to expose this to the application? To me it seems
> enough with "onopen", "onerror" and "onclose" firing at the DataChannel
> object.

There is a need to if it might not come up or be delayed in coming up, 
or if the application needs to wait for it to do createDataChannel 
(option 1).  In option 2 it is optional, though it mirrors the 
onclosedconnection.  With option 2 I agree they're of minimal importance 
and could be removed (if we don't think the app wants to know if/when it 
comes up; see above).


-- 
Randell Jesup
randell-ietf@jesup.org
Received on Friday, 7 September 2012 09:56:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 September 2012 09:56:11 GMT