@collight/dns-sd
    Preparing search index...

    Class Browser

    Browses the local network for mDNS/DNS-SD service instances.

    Emits:

    • up: when a new service appears.
    • down: when a previously seen service sends a "goodbye" (TTL = 0).
    • update: when an existing service has received new records

    Hierarchy

    • EventEmitter<BrowserEventMap>
      • Browser
    Index

    Methods

    Methods

    • Starts the browser and begins listening for mDNS service announcements.

      • Has no effect if the browser is already started.

      Returns void

    • Stops the browser from listening to mDNS service announcements.

      • Has no effect if the browser is already stopped

      Returns void

    • Sends an active query to refresh the list of discovered services.

      • Triggers a new PTR record query for the configured service name
      • Causes mDNS responders to reply with their current service information
      • Useful for manual refresh when you suspect stale service data

      Returns void