File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ class OptionBuilder {
164
164
return this ;
165
165
}
166
166
167
- OptionBuilder setAuthFn (void Function (void Function (Map auth) callback) authFn) {
167
+ OptionBuilder setAuthFn (
168
+ void Function (void Function (Map auth) callback) authFn) {
168
169
_opts['auth' ] = authFn;
169
170
return this ;
170
171
}
Original file line number Diff line number Diff line change @@ -103,9 +103,8 @@ class Socket extends EventEmitter {
103
103
}
104
104
105
105
upgrade = opts['upgrade' ] != false ;
106
- path = '${(opts ['path' ] ?? '/engine.io' )
107
- .toString ()
108
- .replaceFirst (RegExp (r'\/$' ), '' )}/' ;
106
+ path =
107
+ '${(opts ['path' ] ?? '/engine.io' ).toString ().replaceFirst (RegExp (r'\/$' ), '' )}/' ;
109
108
forceJSONP = opts['forceJSONP' ] == true ;
110
109
jsonp = opts['jsonp' ] != false ;
111
110
forceBase64 = opts['forceBase64' ] == true ;
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ class Socket extends EventEmitter {
219
219
}
220
220
221
221
/// Sends a CONNECT packet to initiate the Socket.IO session.
222
- ///
222
+ ///
223
223
/// @param {data}
224
224
/// @api private
225
225
void sendConnectPacket (Map ? data) {
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import 'package:socket_io_client/socket_io_client.dart' as io;
7
7
void main () {
8
8
var socket = io.io (
9
9
'http://localhost:3000' ,
10
- io.OptionBuilder ()
11
- .setTransports (['websocket' ])
10
+ io.OptionBuilder ().setTransports (['websocket' ])
12
11
// .disableAutoConnect()
13
12
.build ());
14
13
You can’t perform that action at this time.
0 commit comments