Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

ws agent support #291

Open
zhaoqinghai opened this issue Jun 13, 2021 · 0 comments
Open

ws agent support #291

zhaoqinghai opened this issue Jun 13, 2021 · 0 comments

Comments

@zhaoqinghai
Copy link

zhaoqinghai commented Jun 13, 2021

i try to modify smart-wss.js to add proxy like this:

const { default: HttpsProxyAgent } = require("https-proxy-agent/dist/agent");
this._wss = new WebSocket(wssPath, {
  perMessageDeflate: false,
  handshakeTimeout: 15000,
  agent: new HttpsProxyAgent('http://127.0.0.1:8001')
});

i hope do this when i new exchange like this:

let binance = new ccxws.Binance({
  agent: new HttpsProxyAgent('http://127.0.0.1:8001')
})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant