WebSocket connection to 'ws://localhost:8080/echo' failed: Error during WebSocket handshake: Unexpected response code: 404
I'm using an Apache server and I get the following message when I attempt to run the $server->run(); script.

WebSocket connection to 'ws://localhost:8080/echo' failed: Error during WebSocket handshake: Unexpected response code: 404.

My application worked two days ago and I was able to send messages to other browsers but it is not working now.

I have tried to edit my http.conf file to allow the sockets to run on port 8080; I've been unsuccessful.
