RTCDataChannel.webidl (1356B)
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/. */ 4 5 enum RTCDataChannelState { 6 "connecting", 7 "open", 8 "closing", 9 "closed" 10 }; 11 12 enum RTCDataChannelType { 13 "arraybuffer", 14 "blob" 15 }; 16 17 [Exposed=(Window,DedicatedWorker)] 18 interface RTCDataChannel : EventTarget 19 { 20 readonly attribute UTF8String label; 21 readonly attribute boolean negotiated; 22 readonly attribute boolean ordered; 23 readonly attribute unsigned short? maxPacketLifeTime; 24 readonly attribute unsigned short? maxRetransmits; 25 readonly attribute UTF8String protocol; 26 readonly attribute unsigned short? id; 27 readonly attribute RTCDataChannelState readyState; 28 readonly attribute unsigned long bufferedAmount; 29 attribute unsigned long bufferedAmountLowThreshold; 30 attribute EventHandler onopen; 31 attribute EventHandler onerror; 32 attribute EventHandler onclosing; 33 attribute EventHandler onclose; 34 undefined close(); 35 attribute EventHandler onmessage; 36 attribute EventHandler onbufferedamountlow; 37 attribute RTCDataChannelType binaryType; 38 [Throws] 39 undefined send(USVString data); 40 [Throws] 41 undefined send(Blob data); 42 [Throws] 43 undefined send(ArrayBuffer data); 44 [Throws] 45 undefined send(ArrayBufferView data); 46 };