Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RTCPeerConnectionAndDataChannel

Bundles peer connection with datachannel so that we close both when we close the datachannel

Hierarchy

  • RTCPeerConnectionAndDataChannel

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

onclose

  • set onclose(cb: null | ((e: any) => any)): void

onerror

  • set onerror(cb: null | ((e: ErrorEvent | RTCErrorEvent) => any)): void

onmessage

  • set onmessage(cb: null | ((ev: MessageEvent<any>) => any)): void

Methods

close

  • close(): void

send

  • send(data: ArrayBuffer): void

Generated using TypeDoc