Skip to content

Circuit relay using Libp2p 0.46.21 not generating websocket addresses #2292

Closed Answered by achingbrain
haydenyoung asked this question in Q&A
Discussion options

You must be logged in to vote

I'm having trouble replicating this.

package.json:

{
  "name": "libp2p-ws-test",
  "version": "1.0.0",
  "type": "module",
  "dependencies": {
    "helia": "^2.1.0"
  }
}

index.js:

import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { webSockets } from '@libp2p/websockets'
import * as filters from '@libp2p/websockets/filters'
import { mplex } from '@libp2p/mplex'
import { createLibp2p } from 'libp2p'
import { identifyService } from 'libp2p/identify'
import { circuitRelayServer } from 'libp2p/circuit-relay'

const node = await createLibp2p({
  addresses: {
    listen: ['/ip4/0.0.0.0/tcp/12345/ws']
  },
  transports: [
    webSockets({
      

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haydenyoung
Comment options

Answer selected by haydenyoung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants