holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.03k stars 84 forks source link

Relaying failed on data receive #156

Open panekzogen opened 8 months ago

panekzogen commented 8 months ago

Hi, I found that you have recently implemented connection relaying feature, and I would like to try to configure it. But it fails when I try to send any data

E:\work\holepunch-test\node_modules\blind-relay\index.js:271
    this.stream = this.session._server._createStream({
                                       ^

TypeError: this.session._server._createStream is not a function
    at BlindRelayLink.createStream (E:\work\holepunch-test\node_modules\blind-relay\index.js:271:40)
    at BlindRelaySession._onpair (E:\work\holepunch-test\node_modules\blind-relay\index.js:157:12)
    at Object.recv (E:\work\holepunch-test\node_modules\protomux\index.js:199:26)
    at Channel._recv (E:\work\holepunch-test\node_modules\protomux\index.js:155:27)
    at Protomux._decode (E:\work\holepunch-test\node_modules\protomux\index.js:458:15)
    at Protomux._ondata (E:\work\holepunch-test\node_modules\protomux\index.js:422:12)
    at NoiseSecretStream.emit (node:events:517:28)
    at ReadableState.drain (E:\work\holepunch-test\node_modules\streamx\index.js:334:64)
    at ReadableState.update (E:\work\holepunch-test\node_modules\streamx\index.js:344:12)
    at ReadableState.updateReadNT (E:\work\holepunch-test\node_modules\streamx\index.js:525:10)

Node.js v18.18.2