I have a Play Framework application, serving as a WebSocket server, running on Heroku and some WebSocket clients (chat-like application).
I noticed that Heroku closes each connection after 55 seconds of inactivity and I want to prevent this so I thought about creating a mechanism in my Play application that sends some kind of "ping" to each client in order to keep the connections alive.
I am just wondering if this is the way to go? Am I am missing something crucial here?
Best regards