If I understand correctly, Heroku restart the application every day. This is called cycling the dyno.
I'm currently making multiplayer game using websocket.
Basically, when the daily cycling happens, every player on the server gets disconnected from the game. I do get 10 seconds to save player progress but it's still unacceptable that everyone gets disconnected.
How am I supposed to deal with that?