W3cubDocs

/Dart 2

createDataChannel method

RtcDataChannel createDataChannel (String label, [ Map dataChannelDict ])

Implementation

RtcDataChannel createDataChannel(String label, [Map dataChannelDict]) {
  if (dataChannelDict != null) {
    var dataChannelDict_1 = convertDartToNative_Dictionary(dataChannelDict);
    return _createDataChannel_1(label, dataChannelDict_1);
  }
  return _createDataChannel_2(label);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/RtcPeerConnection/createDataChannel.html