I keep getting an error message on my website about webSocket conneciton.
I’m using Hostinger VPS with Ubuntu 22.04 with installed newest nginx.
I have installed SLL using certbot commands.
I honestly just got lost when trying to identify how to fix it. I was trying to google it but people had different sort of issue with it that didn’t apply to my issue.
Every 10 seconds or so I’m getting error in console “WebSocket connection to ‘wss://www.website.com :3000/ws’ failed: “
Everything does work normally so it doesn’t cause any serious issues however this is my portfolio website so would like to avoid any errors.
I will post some code below so hopefully one of you will be able to tell me what I’m doing wrong.
I’m happy to provide more code for other classes but I don’t think anything there would be useful.
If you will tell me to edit a file. If you could tell me where I could find it. It would be great. I’m quite new to VPS servers.
seems port is closed, try to open
sudo iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
Artur Mag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.