Code Monkey home page Code Monkey logo

Comments (9)

JohnBDonner avatar JohnBDonner commented on May 26, 2024

Any thoughts on this @balthazar or @bennyn ?

from binance-api-node.

balthazar avatar balthazar commented on May 26, 2024

Hey, is this something which happens randomly or everytime you try to open this socket?

from binance-api-node.

JohnBDonner avatar JohnBDonner commented on May 26, 2024

@balthazar Unfortunately, this has happened every time I've tried connecting to a websocket channel on various occasions.

from binance-api-node.

bennycode avatar bennycode commented on May 26, 2024

I tested with this code and it works like a charm. So the bug is not reproducible for me. :-/

const Binance = require('binance-api-node').default

const client = new Binance()

client.ws.ticker('ETHBTC', ticker => {
  console.log(ticker)
})

Which Binance API version are you using @JohnBDonner?

from binance-api-node.

JohnBDonner avatar JohnBDonner commented on May 26, 2024

@bennyn here's from my package-lock.json:

"binance-api-node": {
  "version": "0.7.4",
  "resolved": "https://registry.npmjs.org/binance-api-node/-/binance-api-node-0.7.4.tgz",
  "integrity": "sha512-NHsqnw3X+0koa5FHiaAepQE+SEZNH3OJ9H3WL8HZjapFw6BQNfowa8w7E5TAJVGsOL4vWf9UFuOs8xHfsZuk7w==",
  "requires": {
    "html5-websocket": "2.0.2",
    "isomorphic-fetch": "2.2.1",
    "lodash.zipobject": "4.1.3",
    "reconnecting-websocket": "3.2.2"
  }
}

Something to note is that in the documentation it says to install with yarn but I'm using npm. I've seen that can cause issues for some projects.

from binance-api-node.

balthazar avatar balthazar commented on May 26, 2024

Using npm should not matter, it's most likely a connectivity issue on your side, or something is wrong with the binance certificate you have on your client.

from binance-api-node.

maxinminax avatar maxinminax commented on May 26, 2024

I have same issue, It only came from when using on browser

from binance-api-node.

maxinminax avatar maxinminax commented on May 26, 2024

I find the issue because of the protocols pass to reconnecting-websocket is null, so the header Sec-WebSocket-Protocol was send when create web socket is NULL

from binance-api-node.

balthazar avatar balthazar commented on May 26, 2024

0.7.6 release published, closing

from binance-api-node.

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.