Giter VIP home page Giter VIP logo

Comments (4)

kenchambers avatar kenchambers commented on July 29, 2024 1

Another library I saw has this:

turnOffStream() {
    let endpoints = this.binanceWs.websockets.subscriptions();
    for (let endpoint in endpoints) {
      this.binanceWs.websockets.terminate(endpoint);
    }
  }

as well as the ability to pass a disable for reconnect:

const binanceWs = new Binance({
      APIKEY: this.apiKey,
      APISECRET: this.apiSecret,
      reconnect: false,
    });

from ftx-api.

tiagosiebler avatar tiagosiebler commented on July 29, 2024

Small tip, you can also set the client to use the US domain via the domain property:

domain?: FtxDomain;

I'm surprised the wsclient.close() didn't do the trick, will need to investigate that. Thanks for reporting it.

Would a teardown or teardownAll method on the ws client be helpful, specifically to close and clean up everything?

from ftx-api.

kenchambers avatar kenchambers commented on July 29, 2024

absolutely!

thanks for response.

Or maybe a flag that you can pass into the client that would disable reconnect. since it is by default set ?

from ftx-api.

tiagosiebler avatar tiagosiebler commented on July 29, 2024

absolutely!

thanks for response.

Or maybe a flag that you can pass into the client that would disable reconnect. since it is by default set ?

Or both might be nice in this case. Would also avoid the confusion of managing all the close(closewhat) calls

from ftx-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.