We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure if this is a problem with the browser, the advertisement, or my understanding of mdns, but I created a repository to show that this fails:
const mdns = require('mdns') const servicesStrings = [ mdns.tcp('http', 'livingroom').toString(), mdns.udp('osc', 'livingroom').toString(), mdns.tcp('socketio', 'livingroom').toString() ] console.dir({servicesStrings}) for (let serviceString of servicesStrings) { const service = mdns.makeServiceType(serviceString) const browser = mdns.createBrowser(service) browser.on('serviceUp', ({type}) => { const found = servicesStrings.includes(type.toString()) console.log(`${type.toString()} ${found ? 'found' : 'not found'} in services`) }) browser.start() } let port = 3000 for (let serviceString of servicesStrings) { const service = mdns.makeServiceType(serviceString) const advertisement = mdns.createAdvertisement(service, port++) advertisement.start() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not sure if this is a problem with the browser, the advertisement, or my understanding of mdns, but I created a repository to show that this fails:
The text was updated successfully, but these errors were encountered: