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('serverdown:', service)
})
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: