If you want to do something, talk to people and look at how to implement wss instead of ws in their solutions. Just as an example I know that wss is better than ws, but when I'm writing a server, setting wss up is not my main concern, and I just hope that somebody helps me in it.
I wrote this as an example: https://github.com/adamritter/nostr-relay-info-server