Will a websocket connection keep a project alive?


I know that connecting to a websocket at first will keep the project alive, but will a websocket connection keep a project alive, or will the websocket be closed(with the container sleep) after 5 minutes?


From what I know it will most likely go to sleep after 5 minutes, but as long as your project is pinged every 5 minutes it will not sleep. You can use a third party tool like uptimerobot to keep it alive.


Ok, thanks! I already have a system of pinging to keep it alive, I was just wondering if a websocket alone could keep it alive, because I’m already going to have a websocket connection opened and it would be easier to just have that.