Unless require('pmx').init({ports: true}) is called before express app.listen() is called, the custom event will not properly report which port app is listening to.
Should it matter when init is called? It doesn't seem to mention where that should occur in the readme.