1

I am hosting a nodejs (express) server using socket.io on Heroku. After a certain amount of time, I will be unable to access the server from a client - the socket requests will not receive a response. However, once I reload the root web page, I am able to access it. Why is this the case?

Jake
  • 73
  • 2
  • 6

1 Answers1

0

I figured out that I need to upgrade to paid (hobby at minimum) Dynos, otherwise the app will go to sleep after 30 minutes of inactivity.

Jake
  • 73
  • 2
  • 6
  • Actually there are lots of ways to prevent free dynos from sleeping. See http://stackoverflow.com/questions/40646858/avoid-heroku-server-from-sleeping/40647411#40647411 for details. – Yoni Rabinovitch Jan 02 '17 at 10:02