Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DataChannel

Index

Constructors

  • new DataChannel(dataChannel: RTCDataChannel): DataChannel

Properties

binaryListeners: DataChannelBinaryListener[] = []
closeListeners: DataChannelListener[] = []
decoder: TextDecoder = ...
error: undefined | string
errorListeners: DataChannelErrorListener[] = []
listeners: DataChannelStringListener[] = []
openListeners: DataChannelListener[] = []
ready: boolean = false

Methods

  • send(data: string): void
  • sendBinary(data: Uint8Array): void
  • waitTilReady(): Promise<boolean>

Generated using TypeDoc