webrtc_data_channel 0.1.0 webrtc_data_channel: ^0.1.0 copied to clipboard
This plugin allows Flutter apps to use WebRTC DataChannel to establish P2P connection and exchange text messages.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add webrtc_data_channel
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
webrtc_data_channel: ^0.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:webrtc_data_channel/webrtc_data_channel.dart';