You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made a website using PHP with Apache, and using Ratchet to work with Weksockets that I host on my Raspberry Pi, which is running Raspbian GNU/Linux 11 (bullseye). Once I have set up and SSL certification with Cerbot, I tried, and see that I have to use WSS instead of WS. I have those files : app.js :
So I tried to put "wss" instead of "ws" in the app.Js file, but is said in the Google Chrome console that "app.js:14 WebSocket connection to 'wss://MYSITE:8001/?id_class=1&id_user=6&chap_name=' failed:". I check many tutorials, but each time it didn't work. So do you know ho to make it work ?
The text was updated successfully, but these errors were encountered:
If you are running on Apache or NGINX, you will also need to use a reverse webbproxy and redirect the traffic.
Make sure your webserver can resolve you domain towards its own ip, otherwise you will get binding problems.
Also make sure that you have the right ports open in your firewall and on server firewall e.g. iptables.
I have made a website using PHP with Apache, and using Ratchet to work with Weksockets that I host on my Raspberry Pi, which is running Raspbian GNU/Linux 11 (bullseye). Once I have set up and SSL certification with Cerbot, I tried, and see that I have to use WSS instead of WS. I have those files : app.js :
and the server.php file :
So I tried to put "wss" instead of "ws" in the app.Js file, but is said in the Google Chrome console that "app.js:14 WebSocket connection to 'wss://MYSITE:8001/?id_class=1&id_user=6&chap_name=' failed:". I check many tutorials, but each time it didn't work. So do you know ho to make it work ?
The text was updated successfully, but these errors were encountered: