AdvertiseMdns

AdvertiseMdns

Creates an instance of mDNS advertiser.

Constructor

new AdvertiseMdns(options)

Source:
See:
Parameters:
Name Type Attributes Default Description
options Object

options object

Properties
Name Type Attributes Default Description
name String

Service name

type String <optional>
https

Service type See mDNS Service Types

protocol String <optional>
tcp

Service protocol

nameSuffix String <optional>

Service name suffix

subtypes Array <optional>

Service subtypes

object.port Number <optional>
443

Service port

object.txt Object <optional>

TXT record(s) of the service

Fires:
  • AdvertiseMdns#event:stop
  • AdvertiseMdns#event:start
  • AdvertiseMdns#event:error

Members

advertiser

Source:
See:

options

Source:
Properties:
Name Type Description
options Object

Advertiser options

Properties
Name Type Description
name Number

Service name

protocol String

Service protocol

type String

Service type

subtypes Array

Service subtypes

port Number

Service port

advertiser Object

mDNS advertiser

state

Source:
Properties:
Name Type Description
state Number

State of the advertiser