@achingbrain/ssdp is now ESM-only and no longer supports wildcard events. The discovery method returns an async iterator of discovered services.
@achingbrain/ssdp moved from a callback model to a promises based model. All other arguments remained the same.
bus.advertise({
// ...
}, (error, advert) => {
advert.service.details((error, details) => {
})
})
bus.advertise({
// ...
})
.then(advert => {
advert.service.details()
.then(details => {
})
.catch(error => {
})
})
.catch(error => {
})