I am trying to push a node.js application on heroku.
The application has an HTTP server listening on one port (process.env.PORT), but I also want the web socket to use a different port. Is this possible in heroics? I use ws.js to create sockets.
On my local machine, I obviously can use 3000 for one port and 8080 for another, but I donβt see how to determine the second port, which the hero will be happy to let me use.
thanks
matte
matt
source share