RTCDataChannelNative constructor

RTCDataChannelNative(
  1. String _peerConnectionId,
  2. String _label,
  3. int _dataChannelId
)

Implementation

RTCDataChannelNative(
    this._peerConnectionId, this._label, this._dataChannelId) {
  stateChangeStream = _stateChangeController.stream;
  messageStream = _messageController.stream;
  _eventSubscription = _eventChannelFor(_peerConnectionId, _dataChannelId)
      .receiveBroadcastStream()
      .listen(eventListener, onError: errorListener);
}