File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -888,9 +888,9 @@ let api = function Binance( options = {} ) {
888888 } ) ;
889889 ws = new WebSocket ( ( Binance . options . test ? fstreamSingleTest : fstreamSingle ) + endpoint , { agent } ) ;
890890 } else if ( httpsproxy !== false ) {
891- if ( Binance . options . verbose ) Binance . options . log ( `futuresSubscribeSingle: using proxy server: ${ agent } ` ) ;
892891 let config = url . parse ( httpsproxy ) ;
893892 let agent = new HttpsProxyAgent ( config ) ;
893+ if ( Binance . options . verbose ) Binance . options . log ( `futuresSubscribeSingle: using proxy server: ${ agent } ` ) ;
894894 ws = new WebSocket ( ( Binance . options . test ? fstreamSingleTest : fstreamSingle ) + endpoint , { agent } ) ;
895895 } else {
896896 ws = new WebSocket ( ( Binance . options . test ? fstreamSingleTest : fstreamSingle ) + endpoint ) ;
@@ -1592,9 +1592,9 @@ let api = function Binance( options = {} ) {
15921592 } ) ;
15931593 ws = new WebSocket ( ( Binance . options . test ? dstreamSingleTest : dstreamSingle ) + endpoint , { agent } ) ;
15941594 } else if ( httpsproxy !== false ) {
1595- if ( Binance . options . verbose ) Binance . options . log ( `deliverySubscribeSingle: using proxy server: ${ agent } ` ) ;
15961595 let config = url . parse ( httpsproxy ) ;
15971596 let agent = new HttpsProxyAgent ( config ) ;
1597+ if ( Binance . options . verbose ) Binance . options . log ( `deliverySubscribeSingle: using proxy server: ${ agent } ` ) ;
15981598 ws = new WebSocket ( ( Binance . options . test ? dstreamSingleTest : dstreamSingle ) + endpoint , { agent } ) ;
15991599 } else {
16001600 ws = new WebSocket ( ( Binance . options . test ? dstreamSingleTest : dstreamSingle ) + endpoint ) ;
You can’t perform that action at this time.
0 commit comments