RTCDataChannel
interface RTCDataChannel extends EventTarget {
binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
readonly label: string;
readonly maxPacketLifeTime: number | null;
readonly maxRetransmits: number | null;
readonly negotiated: boolean;
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
addEventListener<K extends keyof RTCDataChannelEventMap>(
type: K,
listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;close(): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(
type: K,
listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
}var RTCDataChannel: {
prototype: RTCDataChannel;
new (): RTCDataChannel;
};§Extends
§Properties
§
binaryType: BinaryType
[src]§
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null
[src]§
onclose: ((this: RTCDataChannel, ev: Event) => any) | null
[src]§
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null
[src]§
onerror: ((this: RTCDataChannel, ev: Event) => any) | null
[src]§
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null
[src]§
onopen: ((this: RTCDataChannel, ev: Event) => any) | null
[src]§
readonly readyState: RTCDataChannelState
[src]§Methods
§
addEventListener<K extends keyof RTCDataChannelEventMap>(
[src]type: K,
listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof RTCDataChannelEventMap>(
[src]type: K,
listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void