interface RTCDataChannel {
    binaryType: BinaryType;
    bufferedAmount: number;
    bufferedAmountLowThreshold: number;
    id: number;
    label: string;
    maxPacketLifeTime: number;
    maxRetransmits: number;
    negotiated: boolean;
    onbufferedamountlow: ((this, ev) => any);
    onclose: ((this, ev) => any);
    onclosing: ((this, ev) => any);
    onerror: ((this, ev) => any);
    onmessage: ((this, ev) => any);
    onopen: ((this, ev) => any);
    ordered: boolean;
    protocol: string;
    readyState: RTCDataChannelState;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    close(): void;
    dispatchEvent(event): boolean;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
    send(data): void;
    send(data): void;
    send(data): void;
    send(data): void;
}

Hierarchy

  • EventTarget
    • RTCDataChannel

Properties

binaryType: BinaryType
bufferedAmount: number
bufferedAmountLowThreshold: number
id: number
label: string
maxPacketLifeTime: number
maxRetransmits: number
negotiated: boolean
onbufferedamountlow: ((this, ev) => any)

Type declaration

onclose: ((this, ev) => any)

Type declaration

onclosing: ((this, ev) => any)

Type declaration

onerror: ((this, ev) => any)

Type declaration

onmessage: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

onopen: ((this, ev) => any)

Type declaration

ordered: boolean
protocol: string

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • data: string

    Returns void

  • Parameters

    • data: Blob

    Returns void

  • Parameters

    • data: ArrayBuffer

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc