Skip to content

Commit

Permalink
deps: remove @libp2p/webrtc-star
Browse files Browse the repository at this point in the history
  • Loading branch information
tabcat committed Jan 9, 2024
1 parent 7dfa4dd commit 1400139
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 240 deletions.
231 changes: 0 additions & 231 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"@libp2p/mplex": "^9.0.12",
"@libp2p/tcp": "^8.0.13",
"@libp2p/webrtc": "^3.2.11",
"@libp2p/webrtc-star": "^7.0.0",
"@libp2p/websockets": "^7.0.13",
"@multiformats/multiaddr": "^12.1.10",
"@types/mocha": "^10.0.0",
Expand Down
10 changes: 2 additions & 8 deletions test/utils/libp2p-options.browser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { webRTCStar } from '@libp2p/webrtc-star'
import { webSockets } from '@libp2p/websockets'
import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
Expand All @@ -12,13 +11,10 @@ import { circuitRelayTransport } from 'libp2p/circuit-relay'
import { getAddrs } from './circuit-relay-addr'

export async function createLibp2pOptions (opts: Libp2pOptions): Promise<Libp2pOptions<Services>> {
const webRtcStar = webRTCStar()

const options: Libp2pOptions = {
addresses: {
listen: [
'/webrtc',
'/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star/'
'/webrtc'
]
},
transports: [
Expand All @@ -27,11 +23,9 @@ export async function createLibp2pOptions (opts: Libp2pOptions): Promise<Libp2pO
discoverRelays: 1
}),
webRTC(),
webRTCDirect(),
webRtcStar.transport
webRTCDirect()
],
peerDiscovery: [
webRtcStar.discovery,
bootstrap({ list: [...(await getAddrs()).map(String), '/ip4/127.0.0.1/tcp/8001/ws/p2p/12D3KooWDoap6J1qAP17dvR8KgaknSZSFSamxFeggEc5Qzecqto3'] })
],
connectionEncryption: [
Expand Down

0 comments on commit 1400139

Please sign in to comment.