Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event BUS #882

Closed
Tjatse opened this issue Dec 16, 2014 · 4 comments
Closed

Event BUS #882

Tjatse opened this issue Dec 16, 2014 · 4 comments

Comments

@Tjatse
Copy link
Collaborator

Tjatse commented Dec 16, 2014

Hi @Unitech @jshkurti
I am writing a GUI for PM2 these days, in my case, I am listening on the PUB socket, and found that PM2 publish nothing (event) to EVENT BUS when a STOPPED process is being deleted - (God/ActionMethods.js#L179-L180), there is no knowing when the processes would be changed (programmatic way).

Is it designed in that way or just forgot to pub?

@Tjatse
Copy link
Collaborator Author

Tjatse commented Dec 16, 2014

Never mind, I've hacked in. We should pub a delete event when deleting process, right?

@jshkurti
Copy link
Contributor

Just forgot to pub, thanks for the feedback :)

@Tjatse
Copy link
Collaborator Author

Tjatse commented Dec 30, 2014

@jshkurti In progress?

@Unitech
Copy link
Owner

Unitech commented Nov 23, 2016

All events are now available via:

pm2.launchBus(function(err, bus) {
  pm2_bus.on('*', function(packet) {
  });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants