Whenever I search for any UDP service by doing:
const browser = bonjour.find({protocol: 'udp', type: 'switcher_ctrl'}, function (service) {console.log('found', service)})
I think it might be related to the following lines:
|
if (opts === null || opts.type === undefined) { |
|
this.name = WILDCARD |
|
this.wildcard = true |
|
} else { |
|
this.name = ServiceToString({ name: opts.type, protocol: opts.protocol || 'tcp'}) + TLD |
|
if (opts.name) this.name = opts.name + '.' + this.name |
|
this.wildcard = false |
|
} |
if there is no type option supplied.
Whenever I search for any
UDPservice by doing:I think it might be related to the following lines:
bonjour-service/src/lib/browser.ts
Lines 61 to 68 in 67ed22f
if there is no type option supplied.