WebSocketClient.js:13 WebSocket connection to ‘wss://www.liveWebsite.com:3000/ws’ failed:

After i deployed my nodejs website to my VPS server everything was good untill i installed certbot to make my website secure and be able to use https.

after that happend im keep getting error messages about websocet can’t connect. i was reading quite a lot of the threads but eather the question was for localhost or changing the files inside nginx/sites-avaible / sites-enabled and making changes to conf files to remove the port from the proxybypass but it only crashed the server and nothing else.

im running nginx on ubuntu.

Any help will be really aprisated.

Leave a Comment