createDataChannel method

RtcDataChannel createDataChannel(String label, [ Map options ])

Source

RtcDataChannel createDataChannel(String label, [Map options]) {
  if (options != null) {
    return _blink.BlinkRTCPeerConnection.instance
        .createDataChannel_Callback_2_(
            this, label, convertDartToNative_Dictionary(options));
  }
  return _blink.BlinkRTCPeerConnection.instance
      .createDataChannel_Callback_1_(this, label);
}

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