GithubHelp home page GithubHelp logo

Comments (7)

monkbroc avatar monkbroc commented on May 29, 2024

Thanks for the reproduction steps. It will make it easier to look into this issue.

from particle-api-js.

ricott avatar ricott commented on May 29, 2024

Any plans to solve this bug or any ideas on how I can work around it myself and check if connection is open or not?

from particle-api-js.

khpeterson avatar khpeterson commented on May 29, 2024

+1 on this issue. For me the issue boils down to errors from EventStream.req after the stream has connected/the promise has been resolved. The call to reject that is registered with req.on('error'...) does nothing because the promise has already been resolved and so the errors fall on the floor. To work around this I'm re-registering my own EventStream.req error handler in the resolve function but obviously it would cleaner to do this inside EventStream.js. I will create a pull request.

from particle-api-js.

monkbroc avatar monkbroc commented on May 29, 2024

The work in progress PR is here if you want to test it: #99

from particle-api-js.

khpeterson avatar khpeterson commented on May 29, 2024

Thank you for the pointer, I reviewed EventStream.js and it looks good to me / addresses the issue I've been fighting. I will test it in my environment too. Any idea on when this version will end up in cdn.jsdelivr.net?

from particle-api-js.

monkbroc avatar monkbroc commented on May 29, 2024

from particle-api-js.

monkbroc avatar monkbroc commented on May 29, 2024

This is now available in version 8.0.0 of particle-api-js

from particle-api-js.

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.