IPC removed, replaced by WS

This commit is contained in:
Luis Fernando Molina committed 2020-04-06 08:33:07 +02:00
1 parent ba4217fb24
commit 656c193511
503 files changed
+28128 -34498

No files matched your search

+5 -7
View File
@@ -33,8 +33,7 @@ log.bright ('\nTESTING', { exchange: exchangeId, symbol: exchangeSymbol || 'all'
let proxies = [
'',
'https://cors-anywhere.herokuapp.com/',
// 'https://crossorigin.me/',
'https://cors-anywhere.herokuapp.com/'
]
//-----------------------------------------------------------------------------
@@ -120,7 +119,7 @@ let testSymbol = async (exchange, symbol) => {
} else if (exchange.id === 'coinbase') {
// do nothing for now
// nothing for now
} else {
@@ -336,10 +335,12 @@ let tryAllProxies = async function (exchange, proxies) {
exchange.proxy = proxies[currentProxy]
// add random origin for proxies
if (exchange.proxy.length > 0)
if (exchange.proxy.length > 0) {
exchange.origin = exchange.uuid ()
}
await testExchange (exchange)
break
} catch (e) {
@@ -369,12 +370,9 @@ let tryAllProxies = async function (exchange, proxies) {
;(async function test () {
if (exchangeSymbol) {
await loadExchange (exchange)
await testSymbol (exchange, exchangeSymbol)
} else {
await tryAllProxies (exchange, proxies)
}