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

Re: Is DataChannel label unique?

From: Max Jonas Werner <public-webrtc-w3@makk.es>
Date: Tue, 25 Jun 2013 23:00:29 +0200
Message-ID: <51CA04ED.30505@makk.es>
To: "piranna@gmail.com" <piranna@gmail.com>
CC: public-webrtc <public-webrtc@w3.org>
On 23.06.2013 20:53, piranna@gmail.com wrote:
> On the spec it says that DataChannels labels can be used to identify
> them, but it doesn't say anywhere if they should be unique or instead
> it should be seen just as a name so you would have several of them
> with the same label and you could identify them as a group. What's the
> correct spected behaviour, unique (as the 'id' attribute, only that
> regarding DataChannels) or not unique?

As far as I understand the spec and Mozilla's implementation the label
has no semantics for the browser. You can set it to any value you like
and it's your responsibility as developer to make the DCs
distinguishable from each other.

IMHO it would help to include an example use case for the "label" and
"protocol" fields in the spec.

Received on Wednesday, 26 June 2013 07:10:29 UTC

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