@cryptorubic/sdk
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@cryptorubic/sdk", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "^2.3.0" |
@@ -9,8 +9,8 @@ "use strict"; | ||
if (env === 'local') { | ||
return 'http://localhost:3000/'; | ||
return 'http://localhost:3000'; | ||
} | ||
if (env === 'dev') { | ||
return 'https://dev-api-v2.rubic.exchange/'; | ||
return 'https://dev-api-v2.rubic.exchange'; | ||
} | ||
return 'https://api-v2.rubic.exchange/'; | ||
return 'https://api-v2.rubic.exchange'; | ||
} | ||
@@ -17,0 +17,0 @@ ; |
@@ -14,6 +14,8 @@ "use strict"; | ||
getSocket() { | ||
return (0, socket_io_client_1.io)(api_service_1.ApiService.apiUrl, { | ||
const params = { | ||
reconnectionDelayMax: 10000, | ||
path: 'api/routes/ws/' | ||
}); | ||
path: '/api/routes/ws/' | ||
}; | ||
const ioClient = (0, socket_io_client_1.io)(api_service_1.ApiService.apiUrl, params); | ||
return ioClient; | ||
} | ||
@@ -20,0 +22,0 @@ calculate(params) { |
40932
952