Skip to content

Commit

Permalink
chore: bring back webTransport to benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Nov 8, 2024
1 parent a11d54c commit b4ee127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions benchmarks/transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@libp2p/tcp": "^10.0.0",
"@libp2p/webrtc": "^5.0.0",
"@libp2p/websockets": "^9.0.0",
"@libp2p/webtransport": "^5.0.0",
"@multiformats/multiaddr": "^12.2.1",
"aegir": "^45.0.1",
"blockstore-fs": "^2.0.1",
Expand Down
4 changes: 3 additions & 1 deletion benchmarks/transports/src/runner/helia/transports.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'
import { webRTC } from '@libp2p/webrtc'
import { webSockets } from '@libp2p/websockets'
import * as wsFilters from '@libp2p/websockets/filters'
import { webTransport } from '@libp2p/webtransport'
import type { Transport } from '@libp2p/interface'

interface TransportFactory { (...args: any[]): Transport }
Expand All @@ -12,6 +13,7 @@ export function getTransports (): TransportFactory[] {
filter: wsFilters.all
}),
webRTC(),
circuitRelayTransport()
circuitRelayTransport(),
webTransport()
]
}

0 comments on commit b4ee127

Please sign in to comment.