Skip to content

Commit

Permalink
fix: remove webtransport from default transports (#674)
Browse files Browse the repository at this point in the history
WebTransport is still not working reliably across different browsers. Moreover, the go-libp2p implementation needs to be updated to meet newer revisions of the spec. 

As we discussed during Helia WG, the most sensible thing for now is to remove WebTransport from the default transports.

Refs libp2p/js-libp2p#2572

---------

Co-authored-by: Daniel N <[email protected]>
  • Loading branch information
2color and 2color authored Nov 18, 2024
1 parent f7b5d3f commit 1aa6c8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/helia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"@libp2p/upnp-nat": "^2.0.0",
"@libp2p/webrtc": "^5.0.0",
"@libp2p/websockets": "^9.0.0",
"@libp2p/webtransport": "^5.0.0",
"@multiformats/dns": "^1.0.1",
"blockstore-core": "^5.0.0",
"datastore-core": "^10.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/helia/src/utils/libp2p-defaults.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { mplex } from '@libp2p/mplex'
import { ping, type PingService } from '@libp2p/ping'
import { webRTC, webRTCDirect } from '@libp2p/webrtc'
import { webSockets } from '@libp2p/websockets'
import { webTransport } from '@libp2p/webtransport'
import { ipnsSelector } from 'ipns/selector'
import { ipnsValidator } from 'ipns/validator'
import * as libp2pInfo from 'libp2p/version'
Expand Down Expand Up @@ -48,7 +47,6 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti
circuitRelayTransport(),
webRTC(),
webRTCDirect(),
webTransport(),
webSockets()
],
connectionEncrypters: [
Expand Down

0 comments on commit 1aa6c8d

Please sign in to comment.