You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
NOTE: To run build scripts node-pre-gyp is required. You can install it by running npm install -g node-pre-gyp.
Usage
import{createLibp2p}from'libp2p'import{webRTCDirect}from'@libp2p/webrtc-direct'constnode=awaitcreateLibp2p({transports: [webRTCDirect()]//... other config})awaitnode.start()awaitnode.dial('/ip4/127.0.0.1/tcp/9090/http/p2p-webrtc-direct')
API
Transport
Connection
Contribute
The libp2p implementation in JavaScript is a work in progress. As such, there are a few things you can do right now to help out:
Go through the modules and check out existing issues. This would be especially useful for modules in active development. Some knowledge of IPFS/libp2p may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
About
Dial using WebRTC without the need to set up any Signalling Rendezvous Point!