DataProducer constructor

DataProducer({
  1. required String id,
  2. required RTCDataChannel dataChannel,
  3. required SctpStreamParameters sctpStreamParameters,
  4. required Map<String, dynamic> appData,
  5. bool closed = false,
})

@emits transportclose @emits open @emits error - (error: Error) @emits close @emits bufferedamountlow @emits @close

Implementation

DataProducer({
  required this.id,
  required this.dataChannel,
  required this.sctpStreamParameters,
  required this.appData,
  this.closed = false,
})  : observer = EnhancedEventEmitter(),
      super() {
  _logger.debug('constructor()');

  _handleDataChannel();
}