Git Product home page Git Product logo

Comments (12)

sjmueller avatar sjmueller commented on September 23, 2024 2

Can also confirm that this breaks react-native, indeed because of 6c7f4e1.

from socketcluster-client.

zalmoxisus avatar zalmoxisus commented on September 23, 2024

@jondubois, here's the detailed log: zalmoxisus/remote-redux-devtools#51 (comment)

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

@zalmoxisus @feyy Does it work with v5.0.14?

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

This is the only change which was introduced in v5.0.15 6c7f4e1

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

I can roll it back if that's the problem.

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

It's strange because we use global here https://github.com/SocketCluster/socketcluster-client/blob/master/lib/scsocketcreator.js#L44 but it doesn't seem to cause any problems?

from socketcluster-client.

zalmoxisus avatar zalmoxisus commented on September 23, 2024

@jondubois, I didn't reproduce that. We updated the lib from socketcluster-client@4 to @5, so it's not related to a specific patch version I guess.

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

@zalmoxisus Can you find out which version introduced the problem? It's quite hard to setup react native on my Linux machine so I can't test.

from socketcluster-client.

zalmoxisus avatar zalmoxisus commented on September 23, 2024

@jondubois, I tried earlier versions. It appears only on 5.0.15. Removing global.WebSocket || from here solves the issue. Strangely, it appears only on iOS, not for Android.

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

@sjmueller @zalmoxisus Do you know if this issue has been resolved in newer versions of socketcluster-client? The logic that was causing problems was changed a while ago:

https://github.com/SocketCluster/socketcluster-client/blob/master/lib/sctransport.js#L7-L17

from socketcluster-client.

zalmoxisus avatar zalmoxisus commented on September 23, 2024

@jondubois the fix is landed on React Native >= 0.43, so the older versions of socketcluster-client should work as well.

from socketcluster-client.

jondubois avatar jondubois commented on September 23, 2024

Thanks @zalmoxisus :)

from socketcluster-client.

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.