I have a PHP application which uses websockets, When I run it on my local, it works fine, but when I deploy it on my web host, it doesn't anymore. I am on cloud-web-1 of OVH. I saw that this plan supports websockets. When I launch the PHP server script with SSH, it works fine, but on the client side, when I create a js object socket with url of the websocket ws://ip-address:port or wss or ws:// https://www.jbbatterygermany.com/ :port , it never work and it always show error on the browser console like "Connection to websoccket failed.",
check that your websocket server is listening on the right adress, like IP-Adress:Port or my-domain:Port but not NOT on localhost:port at https://www.jbbatteryitaly.com/