DiscoveryResultSSDP

This is a discovery result of a SSDP discovery strategy. This class should not be instanced manually.

Extends

Properties

address

address: string

The (IP) address of the device.

Type

  • string

headers

headers: Object.<string, string>

The headers (lowercase) in the SSDP response.

Type

  • Object.<string, string>

id

id: string

The identifier of the result.

Type

  • string

lastSeen

lastSeen: Date

When the device has been last discovered.

Type

  • Date

port

port: number

The port of the device.

Type

  • number

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