Comments (6)
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.
Looks like there is a node api plugin for cordova already - https://github.com/feross/chrome-net :)
from js-libp2p.
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.
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.
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.
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)
- 30+ Broken links in readme. HOT 3
- WebRTC transport apparently broken in the NodeJS environment HOT 10
- TypeError: peer[0].getPeerId is not a function HOT 4
- Lacking Documentation: certhash for webRTC? HOT 1
- Race Condition on opening a Stream over a DataChannel HOT 3
- ERR_ENCRYPTION_FAILED tryng to connect to go-ipfs HOT 6
- kad: FIND_NODE(self) should return multiple peers
- libp2p.components not included in typescript types. HOT 1
- autonat and upnp-nat both detect external IP address, but neither updates announced addresses. HOT 2
- libp2p crashes with ABORT_ERR HOT 5
- Memory leak issue HOT 9
- New link for js-libp2p maintainers call? HOT 5
- Circuit Relay v2 should not publish routing key without public addresses HOT 1
- Yamux pontentially sending a WindowUpdate after it has closed the stream
- Unable to run a DHT Provide Successfully HOT 5
- Cannot connect to DNS multiaddr format HOT 3
- Browser-to-server libp2p reliability HOT 3
- investigation: hanging TCPSocketWrap in js-libp2p-amino-dht-bootstrapper HOT 1
- bug: max call stack exceeded when duplicate /webrtc listeners added HOT 1
- Finding Circuit Relay V2 servers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-libp2p.