GithubHelp home page GithubHelp logo

Comments (6)

dryajov avatar dryajov commented on May 30, 2024

Seems like the APIs are quite different among those plugins and the on that js-libp2p-tcp uses -which is Node's. We can either write a new transport specific for cordova or shim the node api on top of one of those plugins.

from js-libp2p.

dryajov avatar dryajov commented on May 30, 2024

Looks like there is a node api plugin for cordova already - https://github.com/feross/chrome-net :)

@xSkyripper

from js-libp2p.

daviddias avatar daviddias commented on May 30, 2024

That chrome net is a great find @dryajov. We can actually enable js-ipfs to just take in a whole custom libp2p instance so that runtimes like Cordoba can use the caps they have.

@xSkyripper, how does that sound? This shouldn't be hard to make it happen.

from js-libp2p.

jayarjo avatar jayarjo commented on May 30, 2024

Is this still actual? I'd like to familiarize myself with the whole thing on a deeper level and looking for an entry point. I could try to implement this one.

from js-libp2p.

jacobheun avatar jacobheun commented on May 30, 2024

Having bridges for native transport and peer discovery support would be great, there still currently isn't any. While there are jvm and swift implementations of libp2p in early phases, there would still need to be bridges built for things like Cordova / React Native.

In theory we should be able to use websockets to run things in a browser build, although I don't believe that's been tested in Cordova. @jayarjo if you'd like to look into getting libp2p running in a mobile build that would be a nice tool for mobile app development.

I think starting with a browser build of libp2p and integrating in native components as needed, or to enhance the experience would be a good path.

from js-libp2p.

p-shahi avatar p-shahi commented on May 30, 2024

This would help with developing mobile applications for JS developers.

For now, you can use WebRTC or WebSocket on mobile devices. We're not officially supporting Cordova anytime soon (if community members want to hack it to work, we're happy to review PRs/provide assistance.)

from js-libp2p.

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.