diff --git a/docs/classes/ciaoservice.html b/docs/classes/ciaoservice.html index 05c1a9c..bea38eb 100644 --- a/docs/classes/ciaoservice.html +++ b/docs/classes/ciaoservice.html @@ -1,4 +1,4 @@ -CiaoService | @homebridge/ciao - v1.1.3
Options
All
  • Public
  • Public/Protected
  • All
Menu
+CiaoService | @homebridge/ciao - v1.1.5
Options
All
  • Public
  • Public/Protected
  • All
Menu

The CiaoService class represents a service which can be advertised on the network.

A service is identified by it's fully qualified domain name (FQDN), which consist of the service name, the service type, the protocol and the service domain (.local by default).

@@ -8,7 +8,7 @@

A CiaoService class is always bound to a Responder and can be created using the Responder.createService method in the Responder class. Once the instance is created, advertise can be called to announce the service on the network.

-

Hierarchy

  • EventEmitter
    • CiaoService

Index

Methods

advertise

  • advertise(): Promise<void>

Hierarchy

  • EventEmitter
    • CiaoService

Index

Methods

advertise

  • advertise(): Promise<void>
  • This method start the advertising process of the service:

    • The service name (and hostname) will be probed unique on all interfaces (as defined in RFC 6762 8.1).
    • @@ -21,28 +21,28 @@
    • Prober could not find a unique service name while trying for a minute (timeout)
    • One of the announcement packets could not be sent successfully
    -

    Returns Promise<void>

destroy

  • destroy(): Promise<void>

destroy

  • destroy(): Promise<void>
  • This method must be called if you want to free the memory used by this service. The service instance is not usable anymore after this call.

    If the service is still announced, the service will first be removed from the network by calling end.

    -

    Returns Promise<void>

end

  • end(): Promise<void>

end

  • end(): Promise<void>
  • This method will remove the advertisement for the service on all connected network interfaces. If the service is still in the Probing state, probing will simply be cancelled.

    Returns Promise<void>

    Promise will resolve once the last goodbye packet was sent out

    -

getFQDN

  • getFQDN(): string
  • Returns string

    The fully qualified domain name of the service, used to identify the service.

    -

getHostname

  • getHostname(): string

getLowerCasedSubtypePTRs

  • getLowerCasedSubtypePTRs(): undefined | string[]
  • Returns undefined | string[]

    Array of subtype pointers (undefined if no subtypes are specified).

    -

getPort

  • getPort(): number

getFQDN

  • getFQDN(): string
  • Returns string

    The fully qualified domain name of the service, used to identify the service.

    +

getHostname

  • getHostname(): string

getLowerCasedSubtypePTRs

  • getLowerCasedSubtypePTRs(): undefined | string[]
  • Returns undefined | string[]

    Array of subtype pointers (undefined if no subtypes are specified).

    +

getPort

  • getPort(): number
  • Returns number

    The port the service is advertising for. {@code -1} is returned when the port is not yet set.

    -

getTypePTR

  • getTypePTR(): string

updatePort

  • updatePort(port: number): void

getTypePTR

  • getTypePTR(): string

updatePort

  • updatePort(port: number): void
  • Sets or updates the port of the service. A new port number can only be set when the service is still UNANNOUNCED. Otherwise an assertion error will be thrown.

    Parameters

    • port: number

      The new port number.

      -

    Returns void

updateTxt

  • updateTxt(txt: ServiceTxt, silent?: boolean): void

Returns void

updateTxt

  • updateTxt(txt: ServiceTxt, silent?: boolean): void

Functions

getResponder

  • This method is used to get a responder for the provided (optional) set of options.

    Ciao tries to create as few Responder instances as possible. Thus, it will share the same Responder instance for the same set of options.

    diff --git a/package-lock.json b/package-lock.json index 94862a1..8acbf98 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@homebridge/ciao", - "version": "1.1.4", + "version": "1.1.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@homebridge/ciao", - "version": "1.1.4", + "version": "1.1.5", "license": "MIT", "dependencies": { "debug": "^4.3.4", diff --git a/package.json b/package.json index 1761828..239568e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@homebridge/ciao", - "version": "1.1.4", + "version": "1.1.5", "description": "ciao is a RFC 6763 compliant dns-sd library, advertising on multicast dns (RFC 6762) implemented in plain Typescript/JavaScript", "main": "lib/index.js", "types": "lib/index.d.ts",