@@ -14,7 +14,6 @@ import { webSockets } from '@libp2p/websockets'
14
14
import { webTransport } from '@libp2p/webtransport'
15
15
import { webRTC , webRTCDirect } from '@libp2p/webrtc'
16
16
import { BOOTSTRAP_NODE , CHAT_TOPIC , CIRCUIT_RELAY_CODE } from './constants'
17
- import * as filters from "@libp2p/websockets/filters"
18
17
19
18
// @ts -ignore
20
19
import { circuitRelayTransport } from 'libp2p/circuit-relay'
@@ -27,9 +26,7 @@ export async function startLibp2p() {
27
26
// libp2p is the networking layer that underpins Helia
28
27
const libp2p = await createLibp2p ( {
29
28
dht : kadDHT ( { protocolPrefix : "/universal-connectivity" } ) ,
30
- transports : [ webTransport ( ) , webSockets ( {
31
- filter : filters . all ,
32
- } ) , webRTC ( {
29
+ transports : [ webTransport ( ) , webSockets ( ) , webRTC ( {
33
30
rtcConfiguration : {
34
31
iceServers :[
35
32
{
@@ -41,7 +38,7 @@ export async function startLibp2p() {
41
38
]
42
39
}
43
40
} ) , webRTCDirect ( ) , circuitRelayTransport ( {
44
- discoverRelays : 1 ,
41
+ discoverRelays : 10 ,
45
42
} ) , ] ,
46
43
connectionEncryption : [ noise ( ) ] ,
47
44
connectionManager : {
@@ -52,7 +49,8 @@ export async function startLibp2p() {
52
49
peerDiscovery : [
53
50
bootstrap ( {
54
51
list : [
55
- BOOTSTRAP_NODE ,
52
+ // BOOTSTRAP_NODE,
53
+ '/ip4/127.0.0.1/udp/9090/webrtc-direct/certhash/uEiA2twAWww-g6fXsJe6JPlROwCHbRj6fNgr_WHxiQGEK3g/p2p/12D3KooWLTB1SrjyF8R5Z1MKErcV8abs26eo4LpadQKWsxMUcDBJ' ,
56
54
] ,
57
55
} ) ,
58
56
] ,
0 commit comments