chore: libp2p in the browser using webrtc servers (#684)

This commit is contained in:
Vasco Santos
2020-06-29 16:31:07 +02:00
committed by GitHub
parent b524bbf627
commit b664c0aafd
3 changed files with 14 additions and 21 deletions

View File

@ -14,7 +14,10 @@ document.addEventListener('DOMContentLoaded', async () => {
// Add the signaling server address, along with our PeerId to our multiaddrs list
// libp2p will automatically attempt to dial to the signaling server so that it can
// receive inbound connections from other peers
listen: ['/ip4/0.0.0.0/tcp/9090/wss/p2p-webrtc-star']
listen: [
'/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star',
'/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star'
]
},
modules: {
transport: [Websockets, WebRTCStar],