DataProducer constructor
DataProducer({
- required String id,
- required RTCDataChannel dataChannel,
- required SctpStreamParameters sctpStreamParameters,
- required Map<
String, dynamic> appData, - 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();
}