How to run PHP websocket on OVH cloud-web-1 host,
... / How to run PHP websocket ...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

How to run PHP websocket on OVH cloud-web-1 host,

by
MoniqueG
Created on 2021-09-04 09:24:37 (edited on 2024-09-04 14:24:40) in General Chat-old

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.",


Replies are currently disabled for this question.