There was such a problem. I wrote a server-client application with data transfer via a 2-way websockets connection. It works like this. I run the php file from the console, then I update the html page and the connection is established. But. As soon as I try to reload the page, the connection crashes and I need to restart the php file with websockets. Is it possible to make this process run on the server (Apache) automatically, and when reloading the page, reinstall the connection without manual restart?
Thank you in advance!