hammerspoon2-docs
    Preparing search index...

    Function reachabilityForHostName

    • Creates a reachability monitor for a given hostname. Returns null if hostName is empty. Under the hood this monitors general system connectivity (the same as reachabilityInternet()), because NWPathMonitor does not support per-hostname targeting.

      Parameters

      • hostName: string

        A hostname string (e.g. "example.com").

      Returns HSNetworkReachability | null

      A new HSNetworkReachability monitor, or null if hostName is empty.