(once per device) but I want to resolve a promise with all devices, any idea how I could do that?
getDevices() { return new Promise((resolve, reject) => { bonjour.find({type: "http"}, (service) => { // right here I have one service, this function gets called every time a service is found }); }) }
Обсуждают сегодня