How to use the @pm2/agent/src/InteractorClient.launchAndInteract function in @pm2/agent

To help you get started, we’ve selected a few @pm2/agent examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github taurusai / kungfu / resources / cover / pm2 / lib / Client.js View on Github external
daemon.innerStart(function() {
        KMDaemon.launchAndInteract(that.conf, {
          machine_name : that.machine_name,
          public_key   : that.public_key,
          secret_key   : that.secret_key,
          pm2_version  : pkg.version
        }, function(err, data, interactor_proc) {
          that.interactor_process = interactor_proc;
        });

        that.launchRPC(function(err, meta) {
          return cb(null, {
            daemon_mode      : that.conf.daemon_mode,
            new_pm2_instance : true,
            rpc_socket_file  : that.rpc_socket_file,
            pub_socket_file  : that.pub_socket_file,
            pm2_home         : that.pm2_home
          });

@pm2/agent

PM2.io Agent Daemon

AGPL-3.0
Latest version published 5 months ago

Package Health Score

71 / 100
Full package analysis