Find and publish network services advertised by multicast DNS (Bonjour) with Hammerspoon.
This module will allow you to discover services advertised on your network through multicast DNS and publish services offered by your computer.
Signature | hs.bonjour.machineServices(target, callback) -> none |
---|---|
Type | Function |
Description | Polls a host for the service types it is advertising via multicast DNS. Parameters:
Returns:
Notes:
|
Signature | hs.bonjour.networkServices(callback, [timeout]) -> none |
---|---|
Type | Function |
Description | Returns a list of service types being advertised on your local network. Parameters:
Returns:
Notes:
|
Signature | hs.bonjour.new() -> browserObject |
---|---|
Type | Constructor |
Description | Creates a new network service browser that finds published services on a network using multicast DNS. Parameters:
Returns:
|
Signature | hs.bonjour:findBrowsableDomains(callback) -> browserObject |
---|---|
Type | Method |
Description | Return a list of zero-conf and bonjour domains visibile to the users computer. Parameters:
Returns:
Notes:
|
Signature | hs.bonjour:findRegistrationDomains(callback) -> browserObject |
---|---|
Type | Method |
Description | Return a list of zero-conf and bonjour domains this computer can register services in. Parameters:
Returns:
Notes:
|
Signature | hs.bonjour:findServices(type, [domain], [callback]) -> browserObject |
---|---|
Type | Method |
Description | Find advertised services of the type specified. Parameters:
Returns:
Notes:
|
Signature | hs.bonjour:includesPeerToPeer([value]) -> current value | browserObject |
---|---|
Type | Method |
Description | Get or set whether to also browse over peer-to-peer Bluetooth and Wi-Fi, if available. Parameters:
Returns:
Notes:
|
Signature | hs.bonjour:stop() -> browserObject |
---|---|
Type | Method |
Description | Stops a currently running search or resolution for the browser object Parameters:
Returns:
Notes:
|