DataConsumer constructor
DataConsumer({
- required String id,
- required String dataProducerId,
- required RTCDataChannel dataChannel,
- required SctpStreamParameters sctpStreamParameters,
- Map<
String, dynamic> appData = const <String, dynamic>{}, - bool closed = false,
- String? peerId,
@emits transportclose @emits open @emits error - (error: Error) @emits close @emits message - (message: any) @emits @close
Implementation
DataConsumer(
{required this.id,
required this.dataProducerId,
required this.dataChannel,
required this.sctpStreamParameters,
this.appData = const <String, dynamic>{},
this.closed = false,
this.peerId})
: observer = EnhancedEventEmitter(),
super() {
_logger.debug('constructor()');
_handleDataChannel();
}