How to make websocket work?

I have a spring boot application that serves static resources over http and provides WebSocket broadcasting that was deployed as a Docker image. But I have an issue with connecting UI to WebSocket. I get the message “The page at ‘https://…’ was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint ‘ws://…’ This request has been blocked; this endpoint must be available over WSS.”. Then I tried to add SSL to my application, and it works locally and connects to WebSocket via wss URL but when I deployed the application to ‘render’ I can’t even get to the index page with an error “Bad Request This combination of host and port requires TLS.”. Could you please help me resolve this issue?

Hi Olekskii,

Are you still running into this issue?

I navigated to your index page, but was not able to reproduce the error you mentioned. Let me know if you still needed assistance here, and if you can provide the steps to replicate the issue.

Best,

Hi Jade. I tried different variants but I have returned it back so you can check it. I still can’t make web socket work

Hi Olekskii,

Are you able to provide the specific steps you took to replicate the issue?

Best,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.