DiscoveryStrategy

This class should not be instanced manually, but created by calling ManagerDiscovery#getStrategy instead.

Methods

getDiscoveryResult

getDiscoveryResult(id): DiscoveryResultMDNSSD|DiscoveryResultSSDP|DiscoveryResultMAC

Get a specific discovery result.

Parameters

Name Type Description
id
string

Returns

getDiscoveryResults

getDiscoveryResults(): Object.<string, (DiscoveryResultMDNSSD|DiscoveryResultSSDP|DiscoveryResultMAC)>

Get all discovery results as an object.

Returns

Events

result

.on('result')

This event is fired when a new result has been found.

Parameters

Name Type Description
discoveryResult
DiscoveryResultMDNSSD | DiscoveryResultSSDP | DiscoveryResultMAC