After booting up my Node.js Heroku app with this Procfile:
web: node www/main.js
I used to get:
Error R10 (Boot timeout
socket = io.listen(process.env.PORT);
Do this in your main.js file, and revert back to web: node www/main.js
main.js
www/main.js