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
Then I publish a service, with the 'osc' (Open Sound Control) type:
const service = zeroconf.publish({
name: 'my_name',
port: 56032,
type: 'osc',
protocol: 'udp',
txt: {
test: 'TEST',
},
});
service.on('up', () => {
// This is fired, and 'published' entry is set to true.
console.log('Service is up', service);
});
And I listen to all published services with this code:
const browser = zeroconf.find();
browser.on('up', (service: any) => {
// This is not fired for my custom type.
console.log('UP', service.name, service.type);
});
If I define the type of the service to an official type (IANA link included in the README) like 'http', the browser immediately handles the publication. But, with my 'custom' type (not so custom, OSC protocol and zeroconf 'osc' type are widely used, in real-time video softwares for example), the browser doesn't receive anything. I checked in your code and the publication is well received, but no event is fired.
Do I miss something?
Thank you.
The text was updated successfully, but these errors were encountered:
benoitlahoz
changed the title
'up' event not firing forr 'custom' type
'up' event not firing for 'custom' type
Jan 15, 2022
Thank you @mdidon, and sorry for the late response.
It doesn't work, browser's name is _osc._tcp.local.
If I search for { type: 'osc', protocol: 'udp' } it works!
When I launch const browser = zeroconf.find(), browser's name is _services._dns-sd._udp.local and it doesn't output my specific service.
As a side note, that could be important, the publish function increments a number on the host name at each launch: [hostname][-NUMBER].local
Hi and thank you for the great work.
I create a new instance of 'bonjour-service'
const zeroconf = new Bonjour();
Then I publish a service, with the 'osc' (Open Sound Control) type:
And I listen to all published services with this code:
If I define the type of the service to an official type (IANA link included in the README) like 'http', the browser immediately handles the publication. But, with my 'custom' type (not so custom, OSC protocol and zeroconf 'osc' type are widely used, in real-time video softwares for example), the browser doesn't receive anything. I checked in your code and the publication is well received, but no event is fired.
Do I miss something?
Thank you.
The text was updated successfully, but these errors were encountered: