File tree 2 files changed +1
-18
lines changed
lib/services/connection/api_manager
2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import 'dart:developer' as dev;
4
4
import 'dart:io' ;
5
5
6
6
import 'package:flutter/foundation.dart' ;
7
- import 'package:flutter_system_proxy/flutter_system_proxy.dart' ;
8
7
import 'package:web_socket_channel/io.dart' ;
9
8
10
9
import 'package:flutter_deriv_api/api/models/enums.dart' ;
@@ -81,30 +80,18 @@ class BinaryAPI extends BaseAPI {
81
80
82
81
_logDebugInfo ('connecting to $uri .' );
83
82
84
-
85
83
if (! kIsWeb) {
86
84
await _setUserAgent ();
87
85
}
88
86
89
- HttpClient ? client;
90
-
91
- if (proxyAwareConnection) {
92
- final String proxy = await FlutterSystemProxy .findProxyFromEnvironment (
93
- uri.toString ().replaceAll ('wss' , 'https' ));
94
-
95
- client = HttpClient ()
96
- ..userAgent = WebSocket .userAgent
97
- ..findProxy = (Uri uri) => proxy;
98
- }
99
-
100
87
// Initialize connection to websocket server.
101
88
if (kIsWeb) {
102
89
_webSocketChannel = WebSocketChannel .connect (uri);
103
90
} else {
104
91
_webSocketChannel = IOWebSocketChannel .connect (
105
92
'$uri ' ,
106
93
pingInterval: _websocketConnectTimeOut,
107
- customClient : client );
94
+ );
108
95
}
109
96
110
97
_webSocketListener = _webSocketChannel? .stream
Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ dependencies:
29
29
recase : ^4.0.0
30
30
rxdart : ^0.27.7
31
31
device_info_plus : ^8.1.0
32
- flutter_system_proxy :
33
- git :
34
- url :
[email protected] :BrowserStackCE/flutter_system_proxy.git
35
- ref : main
36
32
package_info_plus : ^4.2.0
37
33
connectivity_plus : ^5.0.2
38
34
You can’t perform that action at this time.
0 commit comments