Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / webidl / RTCDataChannel.webidl
blob956458bd327af194e7aa5f6bb0f45f140de54250
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 enum RTCDataChannelState {
6   "connecting",
7   "open",
8   "closing",
9   "closed"
12 enum RTCDataChannelType {
13   "arraybuffer",
14   "blob"
17 [Exposed=Window]
18 interface RTCDataChannel : EventTarget
20   readonly attribute DOMString label;
21   readonly attribute boolean negotiated;
22   readonly attribute boolean ordered;
23   readonly attribute boolean reliable;
24   readonly attribute unsigned short? maxPacketLifeTime;
25   readonly attribute unsigned short? maxRetransmits;
26   readonly attribute USVString protocol;
27   readonly attribute unsigned short? id;
28   readonly attribute RTCDataChannelState readyState;
29   readonly attribute unsigned long bufferedAmount;
30   attribute unsigned long bufferedAmountLowThreshold;
31   attribute EventHandler onopen;
32   attribute EventHandler onerror;
33   attribute EventHandler onclose;
34   undefined close();
35   attribute EventHandler onmessage;
36   attribute EventHandler onbufferedamountlow;
37   attribute RTCDataChannelType binaryType;
38   [Throws]
39   undefined send(DOMString data);
40   [Throws]
41   undefined send(Blob data);
42   [Throws]
43   undefined send(ArrayBuffer data);
44   [Throws]
45   undefined send(ArrayBufferView data);