html – How to prevent repl.it WebSocket from going to sleep?

I have a WebSocket hosting on repl.it

But when the repl sleeps, the WebSocket does as well.

My friends told me to have a pinger to ping the site. It doesn’t work.

They told me to fetch the server.

That doesn’t work either, because when the repl sleeps, CORS is disabled although my code enables CORS.

What do I do?