How to use the @pm2/io.emit function in @pm2/io

To help you get started, we’ve selected a few @pm2/io 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 keymetrics / app-playground / app.js View on Github external
io.action('send event', { comment: 'Sends an event' }, (cb) => {
  io.emit('event:sent', {
    msg: 'You sent a custom event!'
  })
  cb('Sent event!')
})

@pm2/io

PM2.io NodeJS APM

Apache-2.0
Latest version published 2 years ago

Package Health Score

74 / 100
Full package analysis

Similar packages