Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
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,
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]
§
readonly bufferedAmount: number
[src]
§
bufferedAmountLowThreshold: number
[src]
§
readonly id: number | null
[src]
§
readonly label: string
[src]
§
readonly maxPacketLifeTime: number | null
[src]
§
readonly maxRetransmits: number | null
[src]
§
readonly negotiated: boolean
[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 ordered: boolean
[src]
§
readonly protocol: string
[src]
§
readonly readyState: RTCDataChannelState
[src]

§Methods

§
addEventListener<K extends keyof RTCDataChannelEventMap>(
type: K,
listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
close(): void
[src]
§
removeEventListener<K extends keyof RTCDataChannelEventMap>(
type: K,
listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
send(data: string): void
[src]
§
send(data: Blob): void
[src]
§
send(data: ArrayBuffer): void
[src]
§
send(data: ArrayBufferView): void
[src]