fix(style): Format using dart format
This commit is contained in:
parent
38155051f5
commit
8b0f118e2d
@ -22,7 +22,8 @@ class TCPSocketWrapper extends BaseSocketWrapper {
|
|||||||
final StreamController<String> _dataStream = StreamController.broadcast();
|
final StreamController<String> _dataStream = StreamController.broadcast();
|
||||||
|
|
||||||
/// The stream of outgoing (TCPSocketWrapper -> XmppConnection) events.
|
/// The stream of outgoing (TCPSocketWrapper -> XmppConnection) events.
|
||||||
final StreamController<XmppSocketEvent> _eventStream = StreamController.broadcast();
|
final StreamController<XmppSocketEvent> _eventStream =
|
||||||
|
StreamController.broadcast();
|
||||||
|
|
||||||
/// A subscription on the socket's data stream.
|
/// A subscription on the socket's data stream.
|
||||||
StreamSubscription<dynamic>? _socketSubscription;
|
StreamSubscription<dynamic>? _socketSubscription;
|
||||||
@ -80,7 +81,9 @@ class TCPSocketWrapper extends BaseSocketWrapper {
|
|||||||
results.sort(srvRecordSortComparator);
|
results.sort(srvRecordSortComparator);
|
||||||
for (final srv in results) {
|
for (final srv in results) {
|
||||||
try {
|
try {
|
||||||
_log.finest('Attempting secure connection to ${srv.target}:${srv.port}...');
|
_log.finest(
|
||||||
|
'Attempting secure connection to ${srv.target}:${srv.port}...',
|
||||||
|
);
|
||||||
|
|
||||||
// Workaround: We cannot set the SNI directly when using SecureSocket.connect.
|
// Workaround: We cannot set the SNI directly when using SecureSocket.connect.
|
||||||
// instead, we connect using a regular socket and then secure it. This allows
|
// instead, we connect using a regular socket and then secure it. This allows
|
||||||
@ -289,7 +292,8 @@ class TCPSocketWrapper extends BaseSocketWrapper {
|
|||||||
Stream<String> getDataStream() => _dataStream.stream.asBroadcastStream();
|
Stream<String> getDataStream() => _dataStream.stream.asBroadcastStream();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Stream<XmppSocketEvent> getEventStream() => _eventStream.stream.asBroadcastStream();
|
Stream<XmppSocketEvent> getEventStream() =>
|
||||||
|
_eventStream.stream.asBroadcastStream();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void write(Object? data, {String? redact}) {
|
void write(Object? data, {String? redact}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user