Constructor
DiscoveryResultMDNSSD
new DiscoveryResultMDNSSD(props)Parameters
Name | Type | Description |
---|---|---|
props
|
any |
Extends
Properties
address
address: stringThe (IP) address of the device.
Type
- string
fullname
fullname: string|undefinedThe full name of the device.
Type
- string | undefined
host
host: string|undefinedThe hostname of the device.
Type
- string | undefined
id
id: stringThe identifier of the result.
Type
- string
lastSeen
lastSeen: DateWhen the device has been last discovered.
Type
- Date
name
name: string|undefinedThe name of the device.
Type
- string | undefined
port
port: number|undefinedThe 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 |