GithubHelp home page GithubHelp logo

Comments (9)

iamciroja avatar iamciroja commented on July 25, 2024 5

Hello, everyone! Are there any good news on this issue? :)

from autobahn-js.

DamiToma avatar DamiToma commented on July 25, 2024 1

I'm not sure what the state of this issue is, but I tested with ws v8.6.0 and the reason it's erroring is that there's a regex test failing. Autobahn passes both JSON and webpack serialization split by a comma, but ws is expecting an array.

I removed the join statement to pass an array and it's working beautifully now. Does it make sense to migrate to v8 and remove that?

from autobahn-js.

luixo avatar luixo commented on July 25, 2024 1

@oberstet
It seems like you're maintaining the repository
The small change (removing the join and upgrading to the new ws version) can make users' lifes better. If that's too much - the condition may be added to check ws version before joining protocols.
We already have a PR for a quick fix: #552, I can create a PR for a proper one.

from autobahn-js.

DamiToma avatar DamiToma commented on July 25, 2024 1

@oberstet I would suggest to also update the README, as it can be misleading for newbies. Initially I thought it supported up to version 2, we can probably get rid of the comment for Node V4.5.0 (I guess no one has been using that for years).

from autobahn-js.

venki91 avatar venki91 commented on July 25, 2024

Using >= instead of default ^ in the package.json file is causing the problem. A major version of ws module is getting installed, and it is breaking the autobahn module.
Why are we using >= in package.json? Is there a reason?

from autobahn-js.

venki91 avatar venki91 commented on July 25, 2024

I see. You are supporting from ws v1.0.

from autobahn-js.

venki91 avatar venki91 commented on July 25, 2024

Can you put an upper limit to the dependency module versions so that they don't break autobahn in future.
https://semver.npmjs.com/

from autobahn-js.

gvatsov avatar gvatsov commented on July 25, 2024

I used the npm-force-resolutions package for my project as a workaround for this issue to point to the non-broken ws version 7.5.3.

from autobahn-js.

oberstet avatar oberstet commented on July 25, 2024

just a quick note, what @DamiToma suggests sounds good! @luixo no need for checking for old ws version, we can just bump the minimum version required to v8.6. so yeah, a PR would be awesome, I can merge ..

from autobahn-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.