I can't use WSS (WebSockets)

Does anyone have any tips on how I can work with wss on my projects? Using ws works perfectly, but when switching to wss the connection to the websocket server is not made. I even released the port on the firewall.

I need this solution to be able to work with chat in my application.

I checked two manuals, but the solution was still very vague, I’ll leave the link below: