interface RTCDataChannel {
    binaryType: BinaryType;
    bufferedAmount: number;
    bufferedAmountLowThreshold: number;
    id: null | number;
    label: string;
    maxPacketLifeTime: null | number;
    maxRetransmits: null | number;
    negotiated: boolean;
    onbufferedamountlow: null | ((this, ev) => any);
    onclose: null | ((this, ev) => any);
    onclosing: null | ((this, ev) => any);
    onerror: null | ((this, ev) => any);
    onmessage: null | ((this, ev) => any);
    onopen: null | ((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: null | number
label: string
maxPacketLifeTime: null | number
maxRetransmits: null | number
negotiated: boolean
onbufferedamountlow: null | ((this, ev) => any)

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

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

Type declaration

ordered: boolean
protocol: string

Methods

  • 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

  • Parameters

    • data: string

    Returns void

  • Parameters

    • data: Blob

    Returns void

  • Parameters

    • data: ArrayBuffer

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc