open protocol stream on transient connection #2502
Replies: 1 comment 1 reply
-
Okay, I have figured it out. We have to open a protocol stream making the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
dialProtocol(maddr, protocol)
to connect to dial to another peer via relay node where maddr is relay multiaddress of the peer. But there is a problem connecting to it as -CodeError: Cannot open protocol stream on transient connection
Setting option
runOnTransientConnection
astrue
in removes the error message but the stream doesn't seem to open -const stream = await node.dialProtocol(peer_multiaddr, chatProtocol, { runOnTransientConnection: true });
.There is a PR (1890) by @achingbrain that talks about it, how to configure the normal nodes and relay node to open a protocol stream. But it's not very clear.
There is a closed issue on - Docs: Add docs for transient connections. Not sure if the docs are added for it or not. @maschad
Can anyone help me with the documentations or any small example, how to do it?
Beta Was this translation helpful? Give feedback.
All reactions