Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventTarget
    • RTCDataChannel

Index

Properties

binaryType: BinaryType
bufferedAmount: number
bufferedAmountLowThreshold: number
id: null | number
label: string
maxPacketLifeTime: null | number
maxRetransmits: null | number
negotiated: boolean
onbufferedamountlow: null | ((this: internal.RTCDataChannel, ev: Event) => any)
onclose: null | ((this: internal.RTCDataChannel, ev: Event) => any)
onclosing: null | ((this: internal.RTCDataChannel, ev: Event) => any)
onerror: null | ((this: internal.RTCDataChannel, ev: Event) => any)
onmessage: null | ((this: internal.RTCDataChannel, ev: internal.MessageEvent<any>) => any)
onopen: null | ((this: internal.RTCDataChannel, ev: Event) => any)
ordered: boolean
protocol: string

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • close(): void
  • Returns void

  • dispatchEvent(event: Event): boolean
  • 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

  • removeEventListener<K>(type: K, listener: ((this: internal.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
  • Parameters

    • data: string

    Returns void

  • Parameters

    • data: Blob

    Returns void

  • Parameters

    • data: ArrayBuffer

    Returns void

  • Parameters

    • data: ArrayBufferView

    Returns void

Generated using TypeDoc