Replies: 1 comment
-
Which protocols are supported is specific to a connection. See libp2p/specs#530. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Maybe somebody could give me a bit of a push in the right direction. Currently
PollParameters::supported_protocols
is deprecated with the message statingUse libp2p_swarm::SupportedProtocols in your ConnectionHandler instead.
, however while writing a small behaviour with a handler to handle the local protocols, it looks like the usage will only work if a single peer connects, but seems to be redundant doing this as it relies on a peer connection. Is this the intended behaviour to replace the deprecated function? Is there a better way to iterate over the current/supported protocols of the node sincePollParameters::supported_protocols
is deprecated? Below is the code ive quickly written to test things out.behaviour
handler
Beta Was this translation helpful? Give feedback.
All reactions