This pull request ships an implementation of the topic Relay operation. That opens the possibility to take part in voluntary topic dissemination by all interested nodes without the need for subscribing.
Implementation details
This implementation tries to follow @vyzo comment thus it uses a relay reference counter and try to not conflate with subscriptions. However, regarding peer discovery, we probably must follow the same logic as subscriptions which is reflected in the implementation. Also, relays canceling logic has probably a place for improvements so I'd appreciate suggestions on how I can do it better to satisfy all possible use cases.
Refs #28 #292
This pull request ships an implementation of the topic
Relay
operation. That opens the possibility to take part in voluntary topic dissemination by all interested nodes without the need for subscribing.Implementation details
This implementation tries to follow @vyzo comment thus it uses a relay reference counter and try to not conflate with subscriptions. However, regarding peer discovery, we probably must follow the same logic as subscriptions which is reflected in the implementation. Also, relays canceling logic has probably a place for improvements so I'd appreciate suggestions on how I can do it better to satisfy all possible use cases.