Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RTCDataChannel

Hierarchy

Index

Properties

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

Methods

  • 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

    Returns boolean

  • send(data: string): void
  • send(data: Blob): void
  • send(data: ArrayBuffer): void
  • send(data: ArrayBufferView): void
  • Parameters

    • data: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    • data: ArrayBuffer

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc