musiqpad / mqp-server

NodeJS server base for hosting an individual pad
MIT License
30 stars 18 forks source link

[Bug] Disconnects when active on Heroku's Free Tier #98

Closed bgiesing closed 8 years ago

bgiesing commented 8 years ago

When using it on Heroku's Free Tier (which stops the server if nobody is active for 20 mins), it disconnects even if somebody is logged in, watching something, and actively adding stuff). This makes it impossible to watch videos over a certain length as you have to start from the beginning when it disconnects and can't skip to the point it stopped.

TheBanHammer commented 8 years ago

Is this an issue with musiqpad specifically or running musiqpad on Heroku? If it is the latter what is Heroku expecting to detect in order to determine activity?

bgiesing commented 8 years ago

@TheBanHammer That's the problem, I just don't know for either question.

explodingcamera commented 8 years ago

Heroku checks for http requests, and doesn't care about websocket connections. More infos: https://devcenter.heroku.com/articles/free-dyno-hours. You could write a bot that requests the page every 20 mins or so (which is probably against their tos) or switch to openshift or a paid server.