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
importBonjourfrom'bonjour-service'constinstance=newBonjour()// advertise an HTTP server on port 3000instance.publish({name: 'My Web Server',type: 'http',port: 3000})// browse for all http servicesletbrowser=instance.find({type: 'http'})browser.on('up',function(service){console.log('server up:',service)})browser.on('down',function(service){<----Itdoesn't work when other service shutdown
console.log('server down:',service)})
The text was updated successfully, but these errors were encountered:
I've got the same problem. Have you found a solution? What i'm doing now is calling the find() function on an interval. Which is not ideal and seems to cause memory leaks and high cpu usage over time.
The text was updated successfully, but these errors were encountered: