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

Asymetric API on DataChannels creation

From: <piranna@gmail.com>
Date: Wed, 29 May 2013 09:53:14 +0200
Message-ID: <CAKfGGh2U3AOXOa2eY_+oR1sxbB1T3qM0FO_huLcYywsRpLtdeA@mail.gmail.com>
To: public-webrtc <public-webrtc@w3.org>
When you call to createDataChannel() you get a "connecting" DataChannel,
and when connection gets stablished you get an "open" event over it. On the
other hand, on the receiver side you only get a "datachannel" event with
the new DataChannel, thats already open. Doesn't it makes more sense that
the "datachannel" event raise a "connecting" DataChannel to be able to do
pre-open initializations and later raise the "open" event instead of do
both things at the same time? This would also easy to reuse code on
applications when both end are symetric.

If it's done this way just to ear a data flight, it would be mimic just
setting on the specification the "datachannel" event before
setting/changing the status to "open" and adding afterthat an "open" event.
Received on Wednesday, 29 May 2013 07:53:43 UTC

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