DiscoveryResultMDNSSD

This is a discovery result of a mDNS-SD discovery strategy. This class should not be instanced manually.

Constructor

DiscoveryResultMDNSSD

new DiscoveryResultMDNSSD(props)

Parameters

Name Type Description
props
any

Extends

Properties

address

address: string

The (IP) address of the device.

Type

  • string

fullname

fullname: string|undefined

The full name of the device.

Type

  • string | undefined

host

host: string|undefined

The hostname of the device.

Type

  • string | undefined

id

id: string

The identifier of the result.

Type

  • string

lastSeen

lastSeen: Date

When the device has been last discovered.

Type

  • Date

name

name: string|undefined

The name of the device.

Type

  • string | undefined

port

port: number|undefined

The port of the device.

Type

  • number | undefined

txt

txt: Object.<string, string>

The TXT records of the device, key-value.

Type

  • Object.<string, string>

Events

addressChanged

.on('addressChanged')

This event is fired when the address has changed.

Parameters

Name Type Description
discoveryResult
DiscoveryResult

lastSeenChanged

.on('lastSeenChanged')

This event is fired when the device has been seen again.

Parameters

Name Type Description
discoveryResult
DiscoveryResult