Skip to content

Commit

Permalink
Format signaling.dart of flutter_webrtc_demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanchao-xu committed Nov 3, 2023
1 parent e7bd9b6 commit 1ade24a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Signaling {
SimpleWebSocket? _socket;
final BuildContext? _context;
final String _host;
final int _port = 8086;
final _port = 8086;
Map? _turnCredential;
final Map<String, Session> _sessions = {};
MediaStream? _localStream;
Expand Down Expand Up @@ -511,10 +511,8 @@ class Signaling {

Future<void> _createDataChannel(Session session,
{label = 'fileTransfer'}) async {
var dataChannelDict = RTCDataChannelInit()
..maxRetransmits = 30;
var channel =
await session.pc!.createDataChannel(label, dataChannelDict);
var dataChannelDict = RTCDataChannelInit()..maxRetransmits = 30;
var channel = await session.pc!.createDataChannel(label, dataChannelDict);
_addDataChannel(session, channel);
}

Expand Down

0 comments on commit 1ade24a

Please sign in to comment.