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

Re: Re: [Bug 25840] New: Creating DataChannel with same label.

From: <piranna@gmail.com>
Date: Wed, 21 May 2014 14:46:34 +0200
Message-ID: <CAKfGGh3OcuTV7hjxgK3_fMysQv01STd6LgbiEyH=YnNJBVq7Yg@mail.gmail.com>
To: Kiran Kumar Guduru <kiran.guduru@samsung.com>
Cc: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>, "public-webrtc@w3.org" <public-webrtc@w3.org>
> I don't find the concept of representing data channel groups using label in spec. can you plese give me the link if you have any?

There's no such concept of "DataChannel's group", but according to the
spec, you would have several DataChannels with the same label and use
it to identify them, for example:

var channels = [<references to DataChannels>]


 if(channel.label == 'foo')

In this code, you are initializing all the channels with the
initChannel() function, but are doing some aditional steps on the ones
with label 'foo', and there's nothing that can don't allow you to do
it this way...

> I can not imagine existance of datachannel with no label, because it is specified as non-nullable and not optional.

That was a decision for retro-compatibility when createDataChannel()
used positional arguments, but everyone agreed labels should be in the
options bag instead. If label is set as non-nullable or non-optional
it's a bug in the specification, because it isn't.
Received on Wednesday, 21 May 2014 12:47:22 UTC

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