Maybe you have an Nginx or Apache process running on port 80.
I set up once a similar environment, a websocket app and a http app in the same box and in the "same port" (as seen for the final user)
Both reachable on port 80 but in the front there was HAproxy listening, if an "upgrade" header was sent it forwarded
the request to the socket server (running in, eg, port 1337); otherwise it routed to an Nginx server running on port 8080 in the background.
I did it on a EC2 with no extra configuration beyond installing OS packages/libs.
Regards.