Created
September 24, 2020 16:40
-
-
Save vasco-santos/dc24da21662df26d53f646763dc60182 to your computer and use it in GitHub Desktop.
libp2p Basic setup transport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Libp2p = require('libp2p') | |
const WebSockets = require('libp2p-websockets') | |
const WebRtcStar = require('libp2p-webrtc-star') | |
const node = await Libp2p.create({ | |
modules: { | |
transport: [WebSockets, WebRtcStar] | |
// … | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment