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
I'm using Bonjour to connect a few components as a mesh network. As soon as they start and connect to hte network, each components publish a service and find all existing services using a custom type.
Sometimes a service will connect to the network after the existing services have finished their initial service announcement.
In that case the new service announce and gets discovered by the network but the existing services cannot be found by the new service as their initial announcement has already stopped.
Is there any mechanism I can use to make the new service discover the existing ones ?
From reading the RFC, I could see there's two possible options :
Restart the announcement for existing service as a network change has happened
Existing services should answer PTR query triggered by the new service as they browse for matching service. Right now only the initial service announcement seems to answer those queries.
As a side note, I'm using different instance in each component for browsing and publishing as they should publish on a specific interface, but can browse on any interface :
The text was updated successfully, but these errors were encountered:
AltarBeastiful
changed the title
Discover services that have already been announced or triger agian the annoucement
Discover services that have already been announced or trigger again the announcement
Apr 13, 2022
@AltarBeastiful Thanks for highlighting this. We've run into similar issues when using the library in some of our other projects and it is on the list to improve.
Out of interest, what platform and node version are you currently using?
I'm using Bonjour to connect a few components as a mesh network. As soon as they start and connect to hte network, each components publish a service and find all existing services using a custom type.
Sometimes a service will connect to the network after the existing services have finished their initial service announcement.
In that case the new service announce and gets discovered by the network but the existing services cannot be found by the new service as their initial announcement has already stopped.
Is there any mechanism I can use to make the new service discover the existing ones ?
From reading the RFC, I could see there's two possible options :
As a side note, I'm using different instance in each component for browsing and publishing as they should publish on a specific interface, but can browse on any interface :
The text was updated successfully, but these errors were encountered: