You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend NetworkBehaviourAction with NetworkBehaviourAction::ListenOn and NetworkBehaviourAction::RemoveListener to allow adding or removing a listener within the NetworkBehaviour
Motivation
One project that I am working on is an attempt at connecting to a relay automatically, which could benefit from this by emitting an event to listen on the relay and be able to remove it by using the listener id later if needed (eg relay becoming unreliable). Current workaround is emitting an event which is then seen when polling the swarm to then listen to (and soon remove) the address there.
Open questions
Are you planning to do it yourself in a pull request?
Maybe
The text was updated successfully, but these errors were encountered:
This extends `ToSwarm` to add `ToSwarm::ListenOn` and `ToSwarm::RemoveListener`, which allows creating and removing listeners from a `NetworkBehaviour`.
Resolves#3291.
Pull-Request: #3292.
Description
Extend
NetworkBehaviourAction
withNetworkBehaviourAction::ListenOn
andNetworkBehaviourAction::RemoveListener
to allow adding or removing a listener within theNetworkBehaviour
Motivation
One project that I am working on is an attempt at connecting to a relay automatically, which could benefit from this by emitting an event to listen on the relay and be able to remove it by using the listener id later if needed (eg relay becoming unreliable). Current workaround is emitting an event which is then seen when polling the swarm to then listen to (and soon remove) the address there.
Open questions
Are you planning to do it yourself in a pull request?
Maybe
The text was updated successfully, but these errors were encountered: