Returns a Promise that resolves to an array of service-type strings
currently advertised on the local network.
Internally searches for _services._dns-sd._udp. services, collects
results for up to timeout seconds (or until the browser signals no more
results), then resolves.
Parameters
timeout: number
maximum seconds to wait (pass 0 to use the default 5 s)
Returns Promise<string[]>
a Promise resolving to an array of service-type strings such as "_http._tcp."
Returns a Promise that resolves to an array of service-type strings currently advertised on the local network. Internally searches for
_services._dns-sd._udp.services, collects results for up totimeoutseconds (or until the browser signals no more results), then resolves.