Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How can i open a secure websocket?
I got a new droplet and i deployed my NoseJS/TypeScript project.
It runs on IP:51001. (Just a backend service that i want to run 24/7)
If i just visit the ip for my droplet i wont get anything so pretty much i have to visit ip:port since my project runs on a specific websocket port.
After finishing up on my static page i created a websocket:
private socket = new WebSocket("ws://ip:port");
Since im hosting my static page on a HTTPS apache server i cant use the non secure websocket. So i have to add ssl on my websocket so i can request it as
I spent the past 2 days trying to do just that, countless tutorials, guides. Even tried adding my own domain,self signed ssl,certbot.
I can’t make it work, does it make sense what im trying to do?
Sorry for the weird wording, english is not my first language and im really new to all this..