How to use the pm2.connectAsync function in pm2

To help you get started, we’ve selected a few pm2 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 FirstLegoLeague / launcher / src / main / services.js View on Github external
_pm2Connect () {
    if (!this.pm2ConnectionPromise) {
      this.pm2ConnectionPromise = pm2.connectAsync(true)
    }

    return this.pm2ConnectionPromise
  }