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 {
12 enum RTCDataChannelType {
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;
35 attribute EventHandler onmessage;
36 attribute EventHandler onbufferedamountlow;
37 attribute RTCDataChannelType binaryType;
39 undefined send(DOMString data);
41 undefined send(Blob data);
43 undefined send(ArrayBuffer data);
45 undefined send(ArrayBufferView data);