MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / parseProxy

Method parseProxy

src/node-binance-api.ts:391–396  ·  view source on GitHub ↗

* Returns an array in the form of [host, port] * @param {string} connString - connection string * @return {array} array of host and port

(connString: string)

Source from the content-addressed store, hash-verified

389 * @return {array} array of host and port
390 */
391 parseProxy(connString: string) {
392 const arr = connString.split('/');
393 const host = arr[2].split(':')[0];
394 const port = arr[2].split(':')[1];
395 return [arr[0], host, port];
396 }
397
398 /**
399 * Checks to see of the object is iterable

Callers 7

subscribeMethod · 0.95
subscribeCombinedMethod · 0.95
connectWsApiMethod · 0.95
futuresSubscribeMethod · 0.95
deliverySubscribeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected