hammerspoon2-docs
    Preparing search index...

    Function addWatcher

    • Creates a new Wi-Fi event watcher. Call .setCallback() and .start() to activate it. The watcher is stopped automatically when the module shuts down.

      Returns HSWifiWatcher

      an HSWifiWatcher